I'm using Managed Metadata for navigation on a new site, and I've created a page to be used by the term set.
The content of the page is dynamic, thanks to the Items Matching a Tag web part.
However, I'd like to also set the title of the page, both in the <title>
tag and at the top of the page above all the content, to be the current navigation tag.
What's the best way to do this? I'm assuming I need to modify the code for the page in SharePoint Designer, but I'm not really sure what I need to add, and where.
Updated
I've found a couple areas in the aspx that seem to control the areas I'm concerned about:
The title tag:
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
<SharePointWebControls:ListProperty Property="Title" runat="server"/> -
<SharePointWebControls:FieldValue FieldName="Title" runat="server"/>
</asp:Content>
The page title at the top:
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
<SharePointWebControls:FieldValue FieldName="Title" runat="server"/>
</asp:Content>
It seems to me that what I want to replace/change is <SharePointWebControls:FieldValue FieldName="Title" runat="server"/>
. I'm having difficulty finding any documentation for how to access the current navigation term to put in that spot.