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

    Finally I’m trying to commit to Revo.

    My first attempts looks not so funny.

    I’m simply trying to get a basic call of UltimateParent.

    whatever i write,..nothing. huh
    I’m using a local test server with the sample Modx site.

    is this wrong ??
    [[!UltimateParent id=`[*id]` &topLevel=`2`]]

    goal:
    to get a conditionnal page title ’breadcrumbs like’:
    if page is under a parent (different as the root), then use a chunk which compile the page Title like parent - pagetitle
    with something like :
    [[+the_title:if=`[[!UltimateParent &topLevel=`1`]]`:is=`0`:then=`[[$titre-ariane]]`:else=`[[$big-titre]]` ]]


    Thank you
      Schtroumpf Grognon - Grouchy Smurf
      ---------------------------------
      Faites pas attention.. - Don't pay attention
      http://www.dzi-neo.net
      • 22427
      • 793 Posts
      is this wrong ??
      [[!UltimateParent id=`[*id]` &topLevel=`2`]]
      Yes.
      You forgot the question mark (necessary with any other snippet too if you have to add parameters).
      And you used Evo syntax for the id variable.
      It should be
      [[!UltimateParent?id=`[[*id]]` &topLevel=`2`]]
      or better
      [[!UltimateParent? &id=`[[*id]]` &topLevel=`2`]]

      By the way: You can leave out [tt]&id=`[[*id]]`[/tt]: If you don’t add the [tt]&id[/tt] parameter, [tt]UltimateParent[/tt] will take the actual document (the one calling the snippet).
        • 8790
        • 526 Posts
        yes thank you .. I finally found it. I thought I had deleted this topic...
        Sorry
          Schtroumpf Grognon - Grouchy Smurf
          ---------------------------------
          Faites pas attention.. - Don't pay attention
          http://www.dzi-neo.net