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

http://tihomirignatov.blogspot.com/2010/08/how-to-use-metadata-navigation-in.html

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 settingsFrom “Configure Navigation Hierarchies” select “Wiki Categories” and click “Add” and “OK”

How to Use Metadata Navigation in Enterprise Wiki Site (Sharepoint 2010)_第1张图片

Navigate to Pages library again

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

How to Use Metadata Navigation in Enterprise Wiki Site (Sharepoint 2010)_第2张图片

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

How to Use Metadata Navigation in Enterprise Wiki Site (Sharepoint 2010)_第3张图片

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:

How to Use Metadata Navigation in Enterprise Wiki Site (Sharepoint 2010)_第4张图片

How to Use Metadata Navigation in Enterprise Wiki Site (Sharepoint 2010)_第5张图片

阅读全文
类别: moss技术  查看评论

你可能感兴趣的:(SharePoint)