Copied to clipboard

Flag this post as spam?

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


  • Kelvin Thursby 16 posts 36 karma points
    Feb 20, 2012 @ 17:32
    Kelvin Thursby
    0

    Recursive content on grandchilden nodes

    Hi all,

    I have a doc type of homepage which has content. This content wants to be displayed on all pages. Now i worked out to use the recursive property i.e

    <umbraco:item id="office1" runat="server" recursive="true" field="office1"></umbraco:item></div>

    Now this only shows on sub child nodes and not of childen further down the tree,

    What am i doing wrong?

    Thanks

  • Nigel Wilson 945 posts 2077 karma points
    Feb 20, 2012 @ 17:50
    Nigel Wilson
    0

    Hi Kelvin

    Stab in the dark - is the same property defined on ALL document types ? 

    Cheers

    Nigel

  • Kelvin Thursby 16 posts 36 karma points
    Feb 20, 2012 @ 18:24
    Kelvin Thursby
    0

    Thanks for the reply!

    No they are not. Does this mean each document type needs to be derive from the homepage doc type?

    If this is the case, how come it works on all child pages but not grandchild pages. As none of my doc types derive from the homepage?

     

    Cheers

    Kelvin

  • Nigel Wilson 945 posts 2077 karma points
    Feb 20, 2012 @ 18:35
    Nigel Wilson
    0

    Hi Kelvin

    I do not think all doc types need to derive from the home page doc type, but I was thinking that maybe the property needs to be on all docuement types for the recursive aspect to work.

    Are you able to add the same property to your all your doc types, republish the entire site to pick up the new property and see if it works ?

    As originally stated this is a stab in the dark so may be completely wrong, but it may be worth a shot.

    Cheers

    Nigel

  • Kelvin Thursby 16 posts 36 karma points
    Feb 20, 2012 @ 18:37
    Kelvin Thursby
    0

    Hi again,

    I have looked at this and do not think this would make a difference. The pages where it work do not have the properties on it anyway.

    There must be another way to make sure the content is on all pages!

  • Kelvin Thursby 16 posts 36 karma points
    Feb 23, 2012 @ 13:03
    Kelvin Thursby
    0

    Hi everyoone,

    I still have this problem and wonder if anyone can help!!

    Thanks

    Kelvin

Please Sign in or register to post replies

Write your reply to:

Draft