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

    I have an arborescence that looks like that :

    Item 1
    - Item 2
    - Item 3

    So, Item 2 is the parent of Item 3

    I want, when I show Item 3 to go get some informations in Item 2.


    With Ditto I was doing &parents="Item1 id" and filters="id,[*parent*],1"

    How can I do the same with getResources ?

    I tried &tvFilters=`id==[[*parent]]`, but doesn’t seem to work...
      • 8632
      • 4 Posts
      Anyone have an idea ? Is that a dumb question ?
        • 21647
        • 9 Posts
        Try the docs here
        http://wiki.modxcms.com/index.php/Wayfinder

        or something like this:
        [[Wayfinder?
        &startId=`[[UltimateParent? &id=`[[*id]]` ]]`
        &outerTpl=`menu.outer`
        &innerTpl=`menu.inner`
        &rowTpl=`menu.row`
        &innerRowTpl=`menu.innerRow`
        &firstClass=`first`
        &hereClass=`active`
        &startItemTpl=`menu.row`
        &displayStart=`TRUE`
        ]]



        You can get some good examples of the TPLs from the demo site. Hope that is of some help. Been struggling with it here too.
        N.