SharePoint Customization: Change the fields in the current view of a listviewwebpart

A very handy tip from JOPX

Change the fields in the current view of a listviewwebpart
The AllUserswebpart section in ONET.XML defines which webparts are added to a site at site creation. For every list that is created on a site, you can easily add a listviewwebpart by adding to the AllUsersWebPart section.

The value for the List property references the ListTemplate element in the ListTemplates section – 104 is the ID for the Announcements list. The webpart on default.aspx uses the current view as defined in SCHEMA.XML with BaseViewID=0. If you want to change which fields are displayed in this view, you need to alter the ViewFields section in SCHEMA.XML.

You may also like...

1 Response

  1. TVK says:

    Hi,
    Is there a way to modify my listview webpart to point to different custom list(links list)?
    K

I would love to hear from you.

%d bloggers like this: