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

    Can phx-modifiers be used in reflect templates?

    I have following Reflect call:
    [[Reflect? &parents=`21` &dateSource=`datum` &dateFormat=`%d. %B %Y` &groupByYears=`0` &tplContainer=`termine_tplContainer` &tplMonth=`termine_tplMonth` &tplMonthInner=`termine_tplMonthInner` &tplItem=`termine_tplItem` ]]
    

    If I have following item template (&tplItem) everything is fine:
    <span class="reflect_date">[+date+] - </span><a href="[~[+id+]~]" title="[+pagetitle+]" class="reflect_item_link">[+pagetitle+]</a><br />
    

    If I change [+pagetitle+] to [+longtitle:ifempty=`[+pagetitle+]`+] nothing is shown anymore after the date.

    Any hints?

    Regands,

    Manx
      • 18397
      • 3,250 Posts
      What version of Reflect are you using?
        • 18191
        • 5 Posts
        Hi Mark!

        Sorry, Reflect from the Ditto 2.1 package.
        in snippet.reflect.php it says Reflect 2.1.0.

        Regards,

        Manx
          • 10313
          • 375 Posts
          Hi!

          Same here: Reflect 2.1. PHx not working in reflect templates.

          The question is: should it be working? If so, there must be a reason somewhere for the failure. If not: okay.

          Maybe it is the old 0.9.6 MODx version. But, as it is a running system, I dread updating ...

          Martin