We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39327
    • 44 Posts
    getResources is not pulling in any of my TVs. It is pulling in the content from the sub pages just not the TVs. I have tried numerous things but to no avail.

    The name of my TVs are tv.box-image and tv.box-price.

    Here is my call:

    [[!getResources:default=`No results found`? 
        &parents=`19` 
        &tpl=`tpl.supplies` 
        &showHidden=`1` 
        &limit=`0`
        &cache=`0`
        &includeTVs=`1`   
        &processTVs=`1`
    ]]
    


    Here is my tpl:

    <a href="[[~[[+id]]]]">[[+pagetitle]]</a>
    <a href="[[~[[+id]]]]"><img src="[[+tv.box-image]]" /></a>  
    <span class="price">$[[+tv.box-price]]</span>
    



    I did try adding &tvPrefix=`tv.` and then removing tv. from the name of the tvs within the tpl but that didn't work either.

    Any help would be greatly appreciated.

    Modx 2.2.4
      Eric Wargo
      • 4172
      • 5,888 Posts
      when your names are

      tv.box-image


      you will need this placeholder:

      [[+tv.tv.box-image]]


      or use

      &tvPrefix=`` 


      than should this work:

      [[+tv.box-image]]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 39327
        • 44 Posts
        I kept my tv names ans I had them and just added &tvPrefix=`` and it worked as expected. Thanks Bruno17.
          Eric Wargo