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

    I am fairly new with all of this (Not php but modX)

    I was wondering if there is a way of using wayfinder to add the id of the first ul only at first since there was a Parameter for &rowIdPrefix I thought that was it but that only returns an id for the LI’s I need it for the UL, I thought of trying &outerIdPrefix but that doesnt seem to exsist (That would have been the most logical) so then I found out that you can use a chunk and call &outerTpl=`chunkname` and then you can write the outer UL like so <ul id="hInnerLeftUL"[+wf.classes+]>[+wf.wrapper+]</ul> which works the problem I am running into is that its giving all UL’s inside the menu the same ID again being new at all this I am not sure how to add a number to it so that its a unique id each time I tried [+id+] and [+wf.id+] I figure theres probably a way with @eval but again new at all of this
      • 27376
      • 576 Posts
      The outerTpl template is used as the outer most wrapper for the generated ouput. All documents and folders will be processed and inserted into the [+wf.wrapper+] placeholder. If no innerTpl is specified the outerTpl is used when creating submenus.
      - Wayfinder Documentation on Parameters
      The documentation for Wayfinder should be on the wiki :-/
        • 5913
        • 42 Posts
        Thanks for the info. I did end up finding that on the wiki. Might be a good idea for a future version to be able to set the id of the UL’s like you can of the rows without having to d a template. I didnt need to create templates except that I needed an id on the outer ul for my js file to work. cool