Default view file in the custom list

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.