As the scope and user community grow for SharePoint, so does its intricacies. One complex problem for SharePoint administrators is how to maintain a clean site map.
Out-of-the-box SharePoint provides a kind of site map known as the Site Directory. This type of site directory has several disadvantages:
Some companies can live with those restrictions. However, many enterprises would like a site map with a little more flexibility. For example, you might not want to show a user a link to a site to which the user does not have access. Again, this type of security-trimming feature can require extra work.
You might also be in favor of a proper division of labor. That means pushing site map maintenance off the SharePoint administrator's shoulders and onto the site administrator's shoulders where it belongs.
How about easier administration? For instance, allow typical CRUD operations -- known as CReate/Update/Delete. With that flexibility, site administrators can create, update and delete their own piece of the site map.
So how can you meet your SharePoint objectives? Here is an overview of its features:
Now you're ready to create your own site columns and site content types. The following is a detailed walk-through on how to do it:
At the root site of the site collection, create a site column named Site Group:
Create another Site Column named Site Map Link. For type of information, select Hyperlink or Picture. It's located near the middle of the choices. Add this to the Secure Site Map group.
Go back to Site Settings and this time select Site Content Types under Galleries and create a content type as shown in Figure 1.
[IMAGE]
Figure 1: Select Site Content Types under Galleries.
Next, add the Site Group column to the site content type:
Repeat above by adding the second column, "Site Map Link."
Now create a place to test what you've done
To continue reading for free, register below or login
To read more you must become a member of SearchWinIT.com
');
// -->

. In a sandbox environment, create three sites under the site collection root site as shown in Figure 2.
[IMAGE]
Figure 2: In a sandbox environment, create three sites under the site collection root site.
At each site, create a custom list using the Site Map content type described above. Here's how:
Now populate the custom list. In each site map custom list, create entries as shown in Figure 3.
[IMAGE]
Figure 3: In each site map custom list, create entries to populate custom list.
Remember that the Site Map Link will vary based on your environment and the actual location of your sandbox.
Now it's time to manage the Quality Control permissions. In order to demonstrate the secured part of the Site Map, we need to use SharePoint's item-level security. Via the dropdown over the Title column of the item, Quality Control, select Manage Permissions. From there, make the changes as shown in Figure 4.
[IMAGE]
Figure 4: Manage Quality Control permissions.
Here are steps involved:
Remove all other user profiles with the result, as shown in Figure 5.
[IMAGE]
Figure 5: Final step -- Remove all other user profiles with the result.
Now you are finally ready to create the Site Map. At the site collection's root site page, add a Content Query Web Part. Note: CQWP shows up only in the web part gallery when the publishing feature is installed. Edit the page, add a web part and select the Content Query Web Part. Modify the CQWP's properties as follows:
Under Grouping and Sorting:
View the results. First, log in as a test user. Figure 6 shows what the results look like.
[IMAGE]
Figure 6: Log in first as test user.
Next, log in as yourself. Click on the Quality Control link, and the results are shown in Figure 7.
[IMAGE]
Figure 7: Now log in as yourself.
This approach does have certain limitations. First of all, you must have Microsoft Office SharePoint Server 2007 for this particular approach because it relies on the Content Query Web Part, which is a feature that's not available in Windows SharePoint Services.
Another issue is that the CQWP does not span site collections, and this approach does not allow you to create a farm-level site map. The latter can be overcome using Search instead.
At a high level, site administrators would create site content types and custom lists to manage site map data exactly as described above. However, use a Core Search Results Web Part with a fixed keyword query instead of the CQWP to create the site map. This method would require editing XSLT.
Contrary to popular belief, enterprises can create site maps using out-of-the-box SharePoint features that require no custom coding of any kind. This approach results in a security trimmed site map, which is managed by site owners.
It's all about flexibility. Empowering site owners to manage their own part of the site map puts the responsibility where it belongs and frees up SharePoint farm administrators to manage more critical aspects of the SharePoint environment.
Paul Galvin is a Microsoft SharePoint MVP and a SharePoint solutions architect at EMC Corp. Galvin has worked in the IT industry for more than 15 years in areas such as software development, consulting and SharePoint solutions design, where he works with clients to create business solutions using the SharePoint platform. He contributes to the SharePoint community through MSDN forums and his blog at http://paulgalvin.spaces.live.com.