We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12379
    • 460 Posts
    There’s no instruction or examples, as far as I can see, for using &webLinkClass.

    &webLinkClass
    Default:
    CSS class for weblinks

    Placeholders:
    [+wf.classes+] - where classes specifed will be inserted (includes class=" ")
    [+wf.classnames+] - outputs just the class names (without class=" ")
    [+wf.link+] - the href value for your link
    [+wf.title+] - text for the link title
    [+wf.linktext+] - text for the link display
    [+wf.wrapper+] - where to insert a submenu
    [+wf.id+] - where to insert a unique id
    [+wf.attributes+] - where to insert link attributes
    [+wf.docid+] - the document identifier for the current item
    [+wf.description+] - the document’s description

    G
    [!Wayfinder? &startId=`0` &level=`1` &outerTpl=`out_chunk` &rowTpl=`row_chunk` &rowClass=`test` &webLinkClass=`fancypopbox`!]

    {{row_chunk}}
     <li[+wf.classes+]><a [+wf.linkclassplaceholderhere+] href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
    </li>
    


    Going on the nomenclature above, the placeholder should be something like [+wf.linkclasses+] .

    Looking in the WayFinder config file, there’s no clues here either that the placeholder for this parameter actually exists:

    	var $placeHolders = array(
    		'rowLevel' => array('[+wf.wrapper+]','[+wf.classes+]','[+wf.classnames+]','[+wf.link+]','[+wf.title+]','[+wf.linktext+]','[+wf.id+]','[+wf.alias+]','[+wf.attributes+]','[+wf.docid+]','[+wf.introtext+]','[+wf.description+]','[+wf.subitemcount+]'),
    		'wrapperLevel' => array('[+wf.wrapper+]','[+wf.classes+]','[+wf.classnames+]'),
    


    I’m currently using "&rowClass=" with "[+wf.classes+]" placeholder to achieve the result I need, however, in more complex menus where I need to specify a row class and link clas then this just ain’t going to cut the mustard.

    I may need to hack the snippet to include it and/or report it as a bug if no one else can verify.
      Mostly harmless.
      • 12379
      • 460 Posts
      Ah hogwash - have discovered that it inserts a class for when a Weblink appears in the menu, not for just any web link, as I misunderstood it. Best to capitalise the "w" in "weblink" in the Wiki...
        Mostly harmless.