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

    I am trying to get a box-menu to work where the admin can set to which pages he likes. I get an ID-List like: 1,3,6 -> ( [*ThirdMenu*] )

    My DocTree:
    id1
    |-id2
    | |-id3
    |-id4
    |-id5
    |-id6

    And now I am having the hardest time to get wayfinder or ditto to show me these exact pages.

    Wayfinder:
    [!Wayfinder? &startId=`0` &level=`0` &includeDocs=`[*ThirdMenu*]` &debug=`true` !]


    This in combination with this hack : http://modxcms.com/forums/index.php?topic=12951.0 does work if I show id1 with id6, but if it’s only id6 it just don’t show anything. The debug text shows me that it found it, with all the essential placeholders... but it doesn’t render it.

    Ditto:
    I already think this doesn’t work at all because of the way the &filter works. The placeholder [*ThirdMenu*] looks different here to fit the filter rules: 1|id,6|id,3 ... But this is already a hack as you can see in the code (id,[*ThirdMenu*] )

    [[Ditto? &sortBy=`menuindex` &sortDir=`ASC` &filter=`id,[*ThirdMenu*]` &parents=`0` &depth=`0` &display=`all` &debug=`1` ]]


    Maybe someone could help me here with the filter function.
    &filter=`id,1|id,6`

    If I only put id, 1 there, it will show me the contents of id 1, which is great.
    But if I also want the contents of id 6, what do i have to do?

    Thanks
      • 16183
      • 1,390 Posts
      Quote from: segg at Sep 17, 2008, 06:14 AM

      Hi,

      I am trying to get a box-menu to work where the admin can set to which pages he likes. I get an ID-List like: 1,3,6 -> ( [*ThirdMenu*] )

      Wayfinder:
      [!Wayfinder? &startId=`0` &level=`0` &includeDocs=`[*ThirdMenu*]` &debug=`true` !]


      Hi,

      To call a TV within Wayfinder you have to use indicate it like this: [+ThirdMenu+].

      I’m not sure about Ditto....

      /k