Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • BarneyHall 141 posts 210 karma points
    Mar 10, 2010 @ 20:07
    BarneyHall
    0

    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

  • Frederik Vig 29 posts 61 karma points
    Mar 10, 2010 @ 20:33
    Frederik Vig
    0

    Remove the recursive="true" property. Otherwise it will keep going up the structure looking for the metaDescription and metaKeywords fields.

  • BarneyHall 141 posts 210 karma points
    Mar 11, 2010 @ 13:16
    BarneyHall
    0

    Done. Many thanks

  • 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.

Please Sign in or register to post replies