Re: Meta Tags for page not getting added to page (1237 Views)
Reply
N/A
Posts: 32
Registered: ‎06-13-2014
Accepted Solution

Meta Tags for page not getting added to page

Hi,

Our system is on TeamSite 7.4.1 and we want to use meta tags on our pages and hence added the meta tags on page using page setting->meta tags

 

<meta name="customTag" content="trying to check values"/>

 

NOw when we preview the page within TeamSite, we are unable to view them in source, is there any additional steps we need to perform?

 

 

Thanks

Manu

Highlighted
N/A
Posts: 3,319
Registered: ‎01-24-2006

Re: Meta Tags for page not getting added to page

Once upon a time the xsl to print this stuff wasn't in the top-level xsl file (or you may have overridden it with a version that doesn't include that piece).

 

Make sure your fixed-layout.page.xsl (or whatever you're using) has this snippet:

<xsl:for-each select="MetaTags/MetaTag">
	<xsl:element name="meta">
		<xsl:attribute name="name"><xsl:value-of select="name"/></xsl:attribute>
		<xsl:attribute name="content"><xsl:value-of select="content"/></xsl:attribute>
	</xsl:element>
</xsl:for-each>