Thursday 21 January 2010

Meta tags and Umbraco


You’d think that you could do something like this to get meta description and keywords from umbraco
 <meta name="description" content="" />

Unfortunately umbraco will render this:
<meta name="description" content="<umbraco:Item runat='server' field='PageDescription'/>" />

The solution is inline xslt:
<umbraco:Item ID="Item" Field="PageDescription" runat="server" Xslt="concat('')"XsltDisableEscaping="true">umbraco:Item>


*Duplicated from my post on Farmcode.org


No comments:

Post a Comment