Home > Architecture, SP 2010 > SharePoint 2010 Site Directory … its still there

SharePoint 2010 Site Directory … its still there

I’ve always liked the out-of-the-box Site Directory template.  It gives you a bunch of ways to sort your sites and its a pretty simple to use interface.  Its not perfect, but it works.  If you aren’t familiar with the Site Directory template, heres an excerpt from Microsoft:

Select this site template when you want to create a site that lists and categorizes important sites in your organization. It includes different views for categorized sites, top sites, and a site map.

Example use A Site Directory can help you if you want to provide site visitors with a central place to view or locate all of the sites in your site collection.

Source: http://office.microsoft.com/en-us/sharepoint-server-help/default-site-templates-HA010174491.aspx

Below is a picture of what it looks like (pretty similar to MOSS…)

The Site Directory looks and functions the same as the MOSS site template.

This site template isn’t available in the default set of Site Templates.  It’s actually hidden.  To use this tempate, locate the following file:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\1033\XML\webtempsps.xml

Find the node for “Site Directory” and set the attribute Hidden=”True” to “False”.  You can now create the Site Directory as a seperate Site Collection.  To create it as a sub-site, you will need to run the following command:  stsadm.exe -o activatefeature -id 5F3B0127-2F1D-4cfd-8DD2-85AD1FB00BFC –url http://yoursite (Replace the GUID with the proper GUID…I’m assuming its the same.. ).

Adding Sites to the Site Directory

You can manually or automagically add sites to the site directory.  To manually add sites, navigate to the Sites list in your site directory and add your directory.  You can add any URL to the Site Directory.  Don’t forget to Approve them because content approval is on by default!  Microsoft also gave us the option to automagically add newly created sites to the site directory (and yes…you still have to approve these).  In Central Admin, navigate to General Application Settings then Site Directory.

In the Configure the Site Directory link, you see the following options:


This page is awesome.  If you have ever created a workflow to automatically create site collections and add them to the Site Directory, this page eliminates a lot of the headache that is associated with adding new items into that list.  In Site Directory Location, you will put the path to your Site Directory.   This registers all newly created site collections into the Site Directory.  It will put all of your site metadata (title, desc, owner, etc) into that entry.  Also, you can enforce the categories in the last option.

In the second link, Scan Site Directory Links, you can scan views of the Sites SharePoint list for bad or updated links.  Below is a screen show of this page:


In my case, I’ve put the AllItems.aspx view and had this scan update the metadata (only title and description).  This option will actually create a Timer Job that runs daily.  In my case, I had the Timer Job execute immediately.  I tried 3 cases…

  • 1 created site collection, that I later deleted (and ran the scan afterwards)
  • 1 manually entered BAD link
  • 1 site that I updated the title/desc from that site collection

In the bad-link cases, the site directory did not notify me or delete the broken links (maybe I didn’t have it setup correctly…will report when I figure that out).  However, it did change the metadata.  E-mail is not setup in my environment…so I might have different results.  At any rate, I would setup this feature still in the future.

Below is the picture of the timer job definition:


Lastly, the following shots are before and after shots for when you connect your Site Directory to Central Administration (via the options…)

BEFORE:


After:


Hopefully this post helps!  Have a great day!

-Matt

Advertisements
Categories: Architecture, SP 2010
  1. Michael
    March 25, 2013 at 11:50 am

    great article but i am having trouble. you state that you can go to Central Admin, then general application settings, then “configure the site directory” and here you said you can put in the link to the site directory page that was created and start listing sites. i tried this and everytime i put in the page address to the site directory i created i get this error “This not a valid site directory. Specify a URL to a site that is using the site directory template” i am using the page link so i am not sure why…. can you assist?

    • March 25, 2013 at 1:13 pm

      What is the exact url that you are putting into that field? Is it using the Site Directory template? That link must use a site directory template otherwise it will fail.

      • Michael
        March 25, 2013 at 1:16 pm

        http://mccintranet/sites/directory which is the page i created for the site directory. if i browse to the site the site directory page comes up. it also comes up when i am in the settings page and i click the “test” link

      • March 25, 2013 at 1:21 pm

        If you go into powershell and do:

        $web = get-spweb http://mccintranet/sites/directory
        $web | format-list

        what are the values for “WebTemplate”, “WebTemplateId”, and “Configuration” ?

  2. Michael
    March 25, 2013 at 1:25 pm

    Matt Huber :
    If you go into powershell and do:
    $web = get-spweb http://mccintranet/sites/directory
    $web | format-list
    what are the values for “WebTemplate”, “WebTemplateId”, and “Configuration” ?

    Webtemplate = SPSSITES
    WebtemplateID= 34
    configuration = 0

  3. Michael
    March 25, 2013 at 1:38 pm

    i actually tried it that way BEFORE i put it in it’s own collection. that way was not working either and giving me the same error. i really am at a loss and my company really needs a site directory and my boss wants me to figure out how to make one. the solution on CodePlex worked but was too cumbersome for most users and the other issue i had was it kept finding and listing sites with the name “(no title)” and when i deleted them, they would come back

    i really need a site directory is the bottom line

    • March 25, 2013 at 1:46 pm

      Gotcha. Maybe just make sure the url looks like “http://mccintranet/sites/directory/pages/home.aspx” (or the equivalent.). Trying to help you as much as I can but it looks like you are doing the right things. Try looking at the log files, when you get the error, look at Logs and google the more detailed error that you will find there.

  4. Michael
    March 25, 2013 at 3:54 pm

    so i followed the guide here http://shannonbray.wordpress.com/2010/07/17/sharepoint-2010-and-the-site-directory/#comment-353 and it put the url into my site directory settings so i thought it was fixed…. but now i do not see the final screenshot in your article…. when i create a site do not see the “site catergories” added to the bottom of the screen…. so i guess the other blog did not work even though it added the entries??

  5. July 19, 2013 at 1:48 pm

    Oh my goodness! Amazing article dude! Many thanks, However I
    am having issues with your RSS. I don’t understand the reason why I am unable to join it. Is there anybody having identical RSS problems? Anyone who knows the answer will you kindly respond? Thanks!!

  6. July 20, 2013 at 8:03 pm

    Hey just wanted to give you a quick heads up. The words in your article seem to be running off the screen
    in Firefox. I’m not sure if this is a formatting issue or something to do with internet browser compatibility but I thought I’d post to let you know.
    The style and design look great though! Hope you get the issue resolved soon.
    Cheers

  7. August 6, 2013 at 10:48 am

    This site truly has all of the information and facts I needed concerning this subject and didn’t know who to ask.

  8. August 29, 2013 at 5:32 am

    Hello, just wanted to say, I liked this
    article. It was practical. Keep on posting!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: