
Creating the Solution
363
4. Enter in the following information. (Leave any eld not mentioned here blank.)
Menu Name: Sample Menu
Description: A sample menu used for testing.
Enabled: true
5. Click Save.
6. Now click the Sample Menu item you just created to drill down into the menu.
7. Click the Add New Item.
8. Enter in the following information. (Leave any eld not mentioned here blank.)
Display Name: Home
URL: <the site collection URL you are deploying the solution to>
Tool Tip: Return home
Visible: true
9. Click Save.
10. Click Add New Item again.
Display Name: Pages
URL: <a site collection URL>/SitePages/Forms/AllPages.aspx
Link Type: SharePoint List
Tool Tip: Our pages
AutoPopulate: true
AutoPopulate Depth: 1
Visible: true
11. Click Save.
Building the Processing Layer
You now have a navigation structure that is stored in the SharePoint list, but the SharePoint list tells
only half the story as far as the navigation structure is concerned, because the navigation hierarchy may
also contain additional items not stored in the list (auto-populated items) and requires more informa-
tion that is collected from the users (viewer permissions). You need to take the data stored in the list and
process it further to handle the security trimming and the auto-population of subsites and list items.
When working with SharePoint list data, it can be helpful to work with strongly typed objec ...