We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17499 ☆ A M B ☆
    • 872 Posts
    You can use alias field by setting the "textOfLinks" in your call:

    [!Wayfinder? &textOfLinks=`alias`!]


    Then use "linktext" placeholder in your chunk:

    <span><img alt="[+wf.description+]" src="assets/images/menu/[+wf.linktext+].png"/>[+wf.description+]</span>
      • 1611
      • 591 Posts
      Thank you for that workaround, it can be helpful.
      But I realized that TV and document field’s values doesn’t work in Wayfinder 2.0 as promised in documentation. :-(
        • 195
        • 2 Posts
        You have to add "alias" in two places:

        Line 21:
        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+]'),
        		'tvs' => array(),
        	);

        In ’rowLevel’

        Line 182:
        $phArray = array($useSub,$useClass,$classNames,$resource['link'],$resource['title'],$resource['linktext'],$useId,$resource['alias'],$resource['link_attributes'],$resource['id'],$resource['introtext'],$resource['description'],$numChildren);


        It works