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

    I am using GetResources to aggregate a news page that links to individual news pages.

    The problem I am having is that I have used a image TV [[+image]] on the individual page, and would like this as a thumbnail on the aggregated page.

    I have called the tv in the chunk which is called blogPost, below is the chunk.



    *Edit* The solution: For anyone else that has problems with TV’s in Revo or more specifically GetResources, the problem occurred due to TV’s being prefixed with tv. making the call [[+tv.image]]



    <div class="post">
            [[+image]]
        <h2 class="title"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h2>
        <p class="post-info">Posted by [[+createdby:userinfo=`fullname`]]</p>
        <div class="entry">
    	<p>[[+introtext:default=`[[+content:ellipsis=`400`]]`]]</p>
        </div>
        <p class="postmeta">
          <span class="links">
    <a href="[[~[[+id]]]]" class="readmore">Read more</a> | <span class="date">[[+publishedon:strtotime:date=`%b %d, %Y`]]</span>
          </span>
        </p>
    </div>
    



    Below is the code in the individual page template:

          <div class="blog_container_big_image">
            [[*image]]
            <h5>Posted on [[*publishedon:strtotime:date=`%b %d, %Y`]] </h5>
            <h3><a href="[[~[[*id]]]]">[[*pagetitle]]</a></h3>
            [[*content]]
            <h5>[[*tags:notempty=`<span class="tags">Tags: [[!tolinks? &items=`[[*tags]]` &key=`tag` &target=`1`]]</span> `]] </h5>
          </div>



    And below is what I have in the aggregated page to call the chunk

    [[!getResourcesTag? 
      &elementClass=`modSnippet` 
      &element=`getResources` 
      &tpl=`blogPost` 
      &parents=`31` 
      &limit=`5` 
      &includeContent=`1` 
      &includeTVs=`1` 
      &showHidden=`0` 
      &hideContainers=`1` 
      &cache=`0` 
      &pageVarKey=`page` 
    ]]
    
    [[!+page.nav:notempty=`
    [[!+page.nav]] 
    `]]


    Here is the aggregated page:
    http://www.putneysociety.org.uk/modx-2/events/

    Here is the indivdual page:
    http://www.putneysociety.org.uk/modx-2/events/events-blog-decription.html

    The site is still being developed, so hasn’t been tested in ie etc, but works fine here in firefox 3.5.11 Mac

    Hopefully someone can help, as I am pulling my hair out.

    Hope this makes sense.

    Thanks,


    Mitch
      • 19735
      • 8 Posts
      Hi am really pulling my hair out with this. I managed to do place a tv in a chunk in Evo usingditto. I am sure I am overlooking something.

      Or maybe it’s just not possible with GetResources.
        • 19735
        • 8 Posts
        For anyone else that has problems with TV’s in Revo or more specifically GetResources, the problem occurred due to TV’s being prefixed with tv. making the call [[+tv.image]]