We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39583
    • 103 Posts
    I'm using this in a template to get four resources:

    [[!getResources? &parents=`3` &tpl=`projectPreview` &includeContent=`1` &includeTVs=`1` processTVs=`1` &showHidden=`1` &limit=`4` &sortby=`{"publishedon":"ASC"}`]]


    and in my chunk projectPreview I have:

    <div class="project_preview">
    <h1>[[+pagetitle]]</h1>
    [[+tv.projectImage]]
    </div>


    +pagetitle works but +tv.projectImage doesn't show anything. Cache empty any all other things I can think of. Anything I'm missing?

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

    [ed. note: phacer last edited this post 13 years, 9 months ago.]
      --
      André
      • 5430
      • 247 Posts
      Do you get any output at all if you remove processTVs=`1`? Have you tried using &tvPrefix=`` and using your tv name without the 'tv.' in the placeholder?
      • discuss.answer
        • 22840
        • 1,572 Posts
        Try the following:

        [[!getResources? &parents=`3` &tpl=`projectPreview` &includeContent=`1` &tvPrefix=`` &includeTVs=`1` processTVs=`1` &showHidden=`1` &limit=`4` &sortby=`{"publishedon":"ASC"}`]]


        <div class="project_preview">
        <h1>[[+pagetitle]]</h1>
        [[+projectImage]]
        </div>
          • 39583
          • 103 Posts
          Quote from: paulp at Jan 21, 2013, 11:08 AM
          Try the following:

          [[!getResources? &parents=`3` &tpl=`projectPreview` &includeContent=`1` &tvPrefix=`` &includeTVs=`1` processTVs=`1` &showHidden=`1` &limit=`4` &sortby=`{"publishedon":"ASC"}`]]


          <div class="project_preview">
          <h1>[[+pagetitle]]</h1>
          [[+projectImage]]
          </div>

          Thanks, on the first try it didn't help but then suddenly it did. =)
            --
            André