We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36675
    • 56 Posts
    I am calling resource content and TV through getResources chunk, from 4 unpublished resources.

    The content is displayed, but not the TV.

    Is it simply impossible to process TV's from an unpublished resource?

    getResources call:
    [[!getResources?
      &parents=`36`
      &includeTVs`1`
      &processTVs`1`
      &limit=`0`
      &sortby=`RAND()`
      &showUnpublished=`1`
      &includeContent=`1`
      &tpl=`myTpl`
      ]]


    And the template myTpl:
    <div>
          <div class="contentdiv">[[+content]]</div>
          <div class="tvdiv">[[+tv.myTemplateVariable]] test </div>
    </div>


    The first DIV is filled with the resources' contents, but the only part showing in the second divs is "test".

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

    • discuss.answer
      • 4172
      • 5,888 Posts
       
      &includeTVs=`1`
      &processTVs=`1`


      you forgot the '='
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 36675
        • 56 Posts
        oh dear...