We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36624
    • 535 Posts
    Hello,

    This is my question : How can i show an phpthumb-image for each search result ??

    my search output should be that :

    <div class="movieImage">
    <img src="[[+imgUrl:phpthumbof=`&f=jpeg&q=75&wl=130&hp=130&zc=1`]]" width="130px" height="130px" />
    </div>
    

    This code work well in "getResources" snippet. But with simple search it look like there is no TVs.


    The only way to get my "imgUrl" TV is using the "getResourceField" snippet in the chunk ?

    <img src="[[getResourceField? &id=`[[+id]]` &field=`imgUrl` &processTV=`1`]]" />  // this works ! 


    so i get the image but how can i use the phpthumb modifier on this code ?

    Is there a Revo syntax for that ?

    ps: just for example i have tried to combine both : [[!getResourceField? &id=`[[+id]]` &field=`imgUrl` &processTV=`1`]]:phpthumbof=`&f=jpeg&q=75&wl=130&hp=130&zc=1`]] and many other possibilities, but without success.
      CTRL+SHIFT+U - Clear Cache
      CTRL+SHIFT+H - Hiding Heft Panel
      CTRL+SHIFT+N - Fast Create Resource
      CTRL+ALT+P - Preview Recource (in edit resorce window)
      CTRL+ALT+S - Save
      • 36624
      • 535 Posts
      back from git, SimpleSearch 1.1.1 support TV in placeholder ...

      [[!SimpleSearch? &tpl=`searchvideoTpl` &includeTVs=`1` &processTVs=`1`]]

      note: Shouldn’t be noted in the "Available Properties" in the documentation ?
        CTRL+SHIFT+U - Clear Cache
        CTRL+SHIFT+H - Hiding Heft Panel
        CTRL+SHIFT+N - Fast Create Resource
        CTRL+ALT+P - Preview Recource (in edit resorce window)
        CTRL+ALT+S - Save