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

    this is my getResources call:

    [[getResources?
    	&parents=`21`
    	&tpl=`articleRow`
    	&limit=`6`
    	&includeTVs=`1`
    	&processTVs=`1`
    	&depth=`0`
    	&includeContent=`1`
    	&showHidden=`1`
    ]]


    and in the articleRow chunk:

    [[+tv.thumbnail]]


    The TV is set with a media source pointing to assets/img/articles, but I can't get to display the full path to the image. Only the image filename is displayed.

    I read similar problems and they all where solved by adding &processTVs=`1`, but as you can see it doesn't work for me. Any idea?

    An alternative would be to display the media source path, and then have

    [[+mediaSourcePath]][[+tv.thumbnail]]


    But it looks like a hack to me... getResources should process the TV according to the media source.

    Any idea?

    This question has been answered by sottwell. See the first response.

      --
      MODX Revolution 2.2.14-pl (traditional)
    • discuss.answer
      Is the path and URL of the Media Source actually
      assets/img/articles

      Because if it is, you need to put the / at the end of the path and URL. Also, make sure that the "basePathRelative" and "baseURLRelative" are set to "Yes".
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 47768
        • 14 Posts
        Yes I wrote it wrong in here, it did have the / at the end and both were relative but... the baseUrl was emtpy (headbang). It works now thanks!
          --
          MODX Revolution 2.2.14-pl (traditional)