On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Quote from: lukemcd at Jun 13, 2016, 01:30 PM
    magzzs, you need to add "includeTVs" and "processTVs" to the getResources call to pull in TVs. So your call would change to:

    Then in your tpl chunk use something like this to see featured image:

    <img src="[[+tv.featured_image]]">


    Thanks a million, really appreciate it! still have a minor issue, it is not picking up for some reason:


    <p><img src="[[!getResources? &parents=`348` pthumb? &input=`[[*tv.image]]` &options=`h=100&w=100&zc=2` &s3output=`6`]]" alt="[[+pagetitle]] photo" style="float:left; margin-right:20px;">
    <a href="[[~[[+id]]]]">[[+pagetitle]]- [[+publishedon:strtotime:date=`%b %d, %Y`]]<br />Read more</a></p>


    The chunk for image is under article folder if that make a difference...

    Thank you in advanced

    Magz
    • I do not think you should put another getResources call within a template chunk being called by getResources. It seems like your code in the template chunk should be something like:
      <p><img src="[[pthumb? &input=`[[*tv.image]]` &options=`&h=100&w=100&zc=2`]]" alt="[[+pagetitle]] photo" style="float:left; margin-right:20px;">
      <a href="[[~[[+id]]]]">[[+pagetitle]]- [[+publishedon:strtotime:date=`%b %d, %Y`]]<br />Read more</a></p>
      • Hi Luke,

        Thank you for getting back to me, for some reason. it still not working for me.

        Really appreciate for anyone who can help me

        Magz