现在的位置: 首页 > 综合 > 正文

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

2012年03月08日 ⁄ 综合 ⁄ 共 1139字 ⁄ 字号 评论关闭

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”

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:

阅读全文

类别:moss技术 查看评论

抱歉!评论已关闭.