In the list definition, you may need to modify the created View File. the View File in xml is analyzed and it is found that SetupPath = "pages \ viewpage. aspx "is the template file used to create a view.
The path is C: \ Program Files \ Common Files \ Microsoft Shared \ Web Server Extensions \ 14 \ TEMPLATE \ Pages. I copied a viewpage. aspx is then renamed to Customviewpage. aspx. For example:
Then I open Customviewpage. aspx and add the following code:
OK, and then I modify the code in the Custom Schema. xml file: SetupPath = "pages \ Customviewpage. aspx ",
Deploy the service and create a list based on my list template. The following View File is displayed:
OK, of course, it can be modified more perfectly. If you want to make it easier to deploy the test host to the production host, add a ing Folder:
By the way, what if you want to use a certain style for the list on the entire website, whether or not you have defined it? Modify viewpage. aspx as you want. But remember to back up the data before modification.