We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33504
    • 2 Posts
    Greetings!
    I’m new in web developing with MODx and I have a question about the syntax of Wayfinder.
    I want to create a menu with this chunk:
    <a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>

    so that I have this source output:
    <a href="url1" title="title1" id="current">Menu1</a>
    <a href="url2" title="title2">Menu2</a>
    <a href="url3" title="title3">Menu3<a>

    Where id="current" is applied only to the current page.
    I tried using &hereClass but WF outputs it in the <li> tag.
    I also know that [+wf.wrapper+] is an obligatory tag for the chunk setup, but when I put it in there I get a list.
    I don’t want any lists or uls, I just want a nice anchor rolleyes


    With simpler words I want to how to output the "anything else you could imagine" , from this quote
    Wayfinder can be used to output a list, a table, a definition list, and just about anything else you could imagine.
    found on http://www.muddydogpaws.com/development/wayfinder/features.html wink

    Thanks in advance!

    ~Z.Evstatiev
      • 33504
      • 2 Posts
      ~bump
        • 4310
        • 2,310 Posts
        For your row template try :
        <a href="[+wf.link+]" title="[+wf.title+]"  id="[+wf.classnames+]">[+wf.linktext+]</a> 

        For the outer template have you tried something like :
        <p>[+wf.wrapper+]</p>