Thursday, August 5, 2010

How to Use Metadata Navigation in Enterprise Wiki Site (Sharepoint 2010)

If you want to use Metadata navigation tree in Enterprise Wiki Site, you have to do the following:

  • Activate Metadata Navigation and Filtering feature on site level

image

  • Navigate to Library settings page of your “Pages” library and select Metadata navigation settings
  • From “Configure Navigation Hierarchies” select “Wiki Categories” and click “Add” and “OK”

image

  • Navigate to Pages library again

http://<Your Wiki Site Url>/Pages/Forms/AllItems.aspx

clip_image001

But when you click on any of the pages on the right panel, the navigation tree will disappear. 

clip_image001[5]

You have to change the EnterpriseWiki.aspx page layout or better to create and deploy a new one (via Sharepoint Designer or wsp)

You have to include a reference to MetadataNavTree control and put it in some placeholder (PlaceHolderLeftActions) on the page layout aspx file.

  • Put this markup in the beginning of the page

<%@ Register TagPrefix="wssuc" TagName="MetadataNavTree" src="~/_controltemplates/MetadataNavTree.ascx" %>

  • Put this code in the end of page’s code, after the next </asp:Content> tag

<asp:Content id="Content1" runat="server" contentplaceholderid="PlaceHolderLeftActions">

<wssuc:MetadataNavTree id="mdnt" runat="server" />

</asp:Content>

The result is:

image

image

4 коментара:

  1. Hi,
    SharePoint 2010 is beneficial for all with it's new features. It is much advanced from it's predecessors. All businessmen, colleagues, partners, customers can work together in efficient manner.
    glorry

    ReplyDelete
  2. Thank you for your post. This helped me add the navigation tree but whenever I click on a category from the navigation tree, it take me back to the home page of the wiki instead of displaying the items that are associated with the category. Any thoughts?

    ReplyDelete
  3. I have the same trouble. The navigation ist unusable...

    ReplyDelete
  4. Further Infos for a running solution:
    http://markuspersson.wordpress.com/2012/01/19/add-metadata-navigation-on-custom-page-layouts/

    ReplyDelete