On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Something weird:

    I have a ditto call:
    [+phx:if=`[*id*]`:is=`2`:or:if=`[*parent*]`:is=`2`:then=`[[Ditto?extenders=`@FILE assets/modules/yams/yams.extender.inc.php` &phx=`0` &parents=`2` &total=`4` &showPublishedOnly=`1` &orderBy=`menuindex ASC` &noResults=`` &tpl=`thumb-submenu-inhoud`]]`:else=``+]


    I have a chunk tpl with:
    <div><a href="[~[+id+]~]"><img src="[+phx:input=`[[YAMS? &get=`text` &from=`nl::[+grote-afb_nl+]||en::[+grote-afb_en+]`]]`:phpthumb=`w=178&h=138&zc=C&q=85`+] " /></a></div>



    The strainge thing about this is when i add this line below somewhere into the chunk the image works, when i leave this (hidden) line the image is not visible.
    <!-
    [[YAMS? &get=`text` &from=`nl::[+grote-afb_nl+]||en::[+grote-afb_en+]`]]
    ->


    What do i do wrong lol.
      Evolution user, I like the back-end speed and simplicity smiley
    • hi,

      have you tried the simple YAMS call
      <img src="[[YAMS? &get=`chunk` &from=`grote-afb`]] alt="" />

      using phx/phpThumb in your chunks instead of the phx input in the template ?

      Have swing
        réfléchir avant d'agir
      • that didn’t work, tried several calls, might be because i use phx two times or smt. Anyway it does work when i add it hidden the way i have it.
          Evolution user, I like the back-end speed and simplicity smiley
        • hi,

          strange enough... something else you can try is this syntax in your img src
          [[YAMS? &get=`data` &from=`grote-afb`]]
          //or
          [[YAMS? &get=`data` &from=`grote-afb` &docid=`[+id+]`]]

          it works in certain cases...

          have swing
            réfléchir avant d'agir