We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15001
    • 697 Posts
    Hi,

    How to display where the current document is located in the document tree ?
    Like this :
    Products > Camera > Accessories
    with the words linking to the corresponding node in the document hierarchy.
    (Is there a special name for this type of display ?)

    I wonder which snippet to use (Wayfinder, GetField ?). I assume Wayfinder. True?

    Is there some existing config file to do this ?

    The problem with my code (below) is that it displays all the subnodes at each level in the hierarchy and not only the current ancestors as I hope to do.

    Thanks for any help.

    <?php
    
    $startId=49;
    $level=3;
    $outerClass = 'arborescence';
    
    $outerTpl = '@CODE:<div[+wf.classes+]>[+wf.wrapper+]</div>';
    
    $innerTpl = '@CODE:';
    
    $parentRowTpl = '@CODE:<a href="[+wf.link+]" title="[+wf.title+]">[+wf.title+]</a> > [+wf.wrapper+]';
    
    $rowTpl = '@CODE:<a href="[+wf.link+]" title="[+wf.title+]">[+wf.title+]</a>';
    
    ?>


      • 7231
      • 4,205 Posts
      Use the breadcrumb config with Wayfinder OR the breadcrumbs snippet. &config=`breadcrumb`
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]