Hi I'm experiencing strange duplicate meta descriptions and keywords appearing on child pages that should have no meta-content defined, i.e. the content fields are being left blank yet they seems to be inheriting meta data from other pages.
I'm calling the meta-content from within the master template (from fields defined in a master document type) as follows:
Duplicate meta descriptions
Hi I'm experiencing strange duplicate meta descriptions and keywords appearing on child pages that should have no meta-content defined, i.e. the content fields are being left blank yet they seems to be inheriting meta data from other pages.
I'm calling the meta-content from within the master template (from fields defined in a master document type) as follows:
<meta name="description" content="<umbraco:Item field='metaDescription' recursive='true' runat='server'></umbraco:Item>" />
<meta name="keywords" content="<umbraco:Item field='metaKeywords' recursive='true' runat='server'></umbraco:Item>" />
Anyone else also experiencing this or have any idea what's going on? I'd like to stop it occuring if I can...
Many thanks,
Barney
Remove the recursive="true" property. Otherwise it will keep going up the structure looking for the metaDescription and metaKeywords fields.
Done. Many thanks
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.