We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10780
    • 69 Posts
    Been looking for a way to do this, but no luck.

    Basically I want to display the name of the parents Page Title, unless I am on that parent where I want to display something else.

    http://www.webtise.net/~leasowca/index.php?id=3

    See above the Sub Nav I want it to say Weddings, but then if I click on Weddings itself, I want it to not appear or say something else,
    • If you are using Wayfinder you can use the &displayStart and the corresponding &startItemTpl parameters.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 10780
        • 69 Posts
        So I can use Wayfinder to display page titles too?

        The sub nav that you see is called with Ditto.
        • Wayfinder can use quite a few of the regular resource variables:
          [+wf.classes+] - where classes specifed will be inserted (includes class=" ")
          [+wf.classnames+] - outputs the 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 unique id
          [+wf.attributes+] - where to insert link attributes
          [+wf.docid+] - the document identifier for the current item
          [+wf.subitemcount+] - displays the number of items in a folder
          [+wf.description+] - output the description field
          [+wf.introtext+] - output the introtext field
          The &textOfLinks and &titleOfLinks can also be specified
          &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+].
          You can use these placeholders anywhere in the chunk tpl you want.
          <a href="[+link+]" title="[+title+]">[+linktext+] - [+title+]</a>

          and if you specified &textOfLinks=`pagetitle` or &titleOfLinks=`pagetitle` or even &titleOfLinks=`longtitle` you can get some interesting menu structures.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org