We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3953
    • 28 Posts
    I am trying to get the text of links produced in Wayfinder to have <span> tags around them in order to work with some CSS. Can someone give me an example of how I would do this? Thanks!

    &textOfLinks
    default: menutitle
    values: [ id | menutitle | pagetitle | introtext | menuindex | published | hidemenu | parent | isfolder | description | alias | longtitle | type | template ]
    description: The field specified in the textOfLinks parameter will be inserted into the placeholder [+wf.linktext+].
    &titleOfLinks
    default: pagetitle
    values: [ id | menutitle | pagetitle | introtext | menuindex | published | hidemenu | parent | isfolder | description | alias | longtitle | type | template ]
    description: The field specified in the titleOfLinks parameter will be inserted into the placeholder [+wf.title+].

    The above makes no sense to me.
      • 7231
      • 4,205 Posts
      You need to edit/create custom templates. Take a look at the developers site at the URL bellow and scroll down about half way down to the section that discusses template chunks.

      http://www.muddydogpaws.com/development/wayfinder/parameters.html
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 3953
        • 28 Posts
        Cool! This worked

        In chunk called "menu_rowtpl"
        <li[+wf.id+][+wf.classes+]>
        	<a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]><span>[+wf.linktext+]</span></a>
        	[+wf.wrapper+]
        </li>
        


        Snippet call:
              [[Wayfinder? &startId=`0` &rowTpl=`menu_rowtpl` ]]