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
- 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”
- Navigate to Pages library again
http://<Your Wiki Site Url>/Pages/Forms/AllItems.aspx
But when you click on any of the pages on the right panel, the navigation tree will disappear.
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:
Hi,
ReplyDeleteSharePoint 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
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?
ReplyDeleteI have the same trouble. The navigation ist unusable...
ReplyDeleteFurther Infos for a running solution:
ReplyDeletehttp://markuspersson.wordpress.com/2012/01/19/add-metadata-navigation-on-custom-page-layouts/