We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23453
    • 5 Posts
    Hello!

    I have a big document tree. And if user is deep inside it, i want to mark out the ultimate parent of this document.

    activeParentRowTpl is for all parents, but i need only one root-level.

    ie

    Business
    >Full-time
    >Part-time
    >>November
    >>December
    >>>Apply

    Whes user clicks "apply" (or "December") i want to use different tpl for Business but not for Part-time. Is it possible??

      • 7231
      • 4,205 Posts
      Not sure if I understood. Bit I will take a shot.

      There is the &displayStart witch allows a custom start to add titles to menus.

      &displayStart
      default: FALSE
      values: [ TRUE | FALSE ]
      description: The displayStart parameter will cause Wayfinder to output the document used as the startId using the template startItemTpl. This parameter only works if the startId is not equal to zero. This functionality was added so that it is easy to add header to submenus.

      &startItemTpl
      default: see example
      values: name of template chunk
      description: The startItemTpl is used for templating the startId document when the parameter &displayStart is set to TRUE.
      available placeholders: Same as RowTpl.
      example:

      <h2>[+linktext+]</h2>[+wf.wrapper+]

        [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]
        • 11214
        • 225 Posts
        Yes it is.

        Are you test &parentRowHereTpl or &activeParentRowTpl ?

        If it’s required by your tree, you can add :

        &startId=`[[UltimateParent? &id=`[*id*]` &topLevel=`x`]]` where x is the max level for the grand Parent.

        It’s required the snippet UltimateParent
          Verum Index sui et falsi