We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28580
    • 24 Posts
    Working on a way to generate a list of siblings I entered the following wayfinder call:

    [!Wayfinder? &startId=[*parent*] &level=1 &outerTpl=`wfOuter` &rowTpl=`wfRow`!]

    This didn’t work so after a lot of messing about I eventually tried this

    [!Wayfinder? &level=1 &outerTpl=`wfOuter` &rowTpl=`wfRow` &startId=[*parent*]!]

    worked straight away with no alterations other than the parameter order. Looks like a bug to me, unless there’s something I’m missing.

    Can anyone explain?

    (modx 0.9.6.1p2)
      • 7231
      • 4,205 Posts
      It seems it is working but it is not. You did not put backticks around the parent placeholder so it breaks at that point, when this was first it broke imediatly but when you put this last it does everything else and breaks at the end after all the rest was passed.

      This: &startId=[*parent*] should be this: &startId=`[*parent*]`
        [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't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 28580
        • 24 Posts
        Ok, now it makes sense, thanks. Interestingly though it does still honor the [*parent*] tag without the backticks (replace with id and I get different results) so long as it is the last param.