Saturday, April 4, 2009

Create view that shows all Lists (With the same type) in the site collection

  1. Create your new Contenet type the have List type "item" name it "MyCustomContentType"
  2. create custom List Nameit "MyCustomList".
  3. Go to List setting and allow mange content type.
  4. Change the content type of "MyCustomList" to "MyCustomContentType".
  5. Save List as template.
  6. Open a Windows SharePoint Service v3 Team Site in SharePoint Designer.
  7. Insert a view on a the Announcements list with the Title, Body, and Modified fields.
  8. At the top of the Data Source Details task pane, click “MyCustomList” to open the data source properties for the current view.
  9. Click on Fields and remove all fields except ID, Title, Modified, and any of your custom link.
  10. Switch to code view, and search for DataSourceMode
  11. Change the value from List to CrossList
  12. Next search for selectcommand
  13. In the select command, type immediately after the opening quote, and leave the rest of the selectcommand as it. You should see something like this: selectcommand="<webs scope="'Recursive'"></webs><View> ...”
  14. Save the page and browse to it (F12).

No comments: