We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    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
      • 36404
      • 307 Posts
      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
        • 9995
        • 1,613 Posts
        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
          • 36404
          • 307 Posts
          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