We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38547
    • 98 Posts
    I might be going mad here but when using getpage with Revolution 2.2.8 I have my getpage call a chunk and a TV called showroom which shows up in the resource fine and the backend works perfect but chunk don't output the TV images here's what I have.

    On resource 49 I have this get page call
           
    <div class="paging">
    <ul class="pageList">
      [[!+page.nav]]
    </ul>
    </div>
    
    
    
    [[!getPage?
      &element=`getArchives`
      &elementClass=`modSnippet`
      &tpl=`showroom1`
      &hideContainers=`1`
      &pageVarKey=`page`
      &parents=`49`
      &includeTVs=`1`
      &processTV=`1`
      &toPlaceholder=`archives`
      &limit=`5`
      &cache=`0`
      &showHidden=`1`
    ]]
     
    <h3>[[+arc_month_name]] [[+arc_year]] Archives</h3>
     
    [[+archives]]
     
    [[!+page.nav:notempty=`
    <div class="paging"> 
    <ul class="pageList"> 
      [[!+page.nav]] 
    </ul> 
    </div>


    My Chunk
    <div class="container">
    
    				<!-- Container Head -->
    				<div class="container_head">
    				<img src="assets/templates/2wheels/images/sidebar_left.jpg" alt="" class="float_left"/>
    				<img src="assets/templates/2wheels/images/sidebar_right.jpg" alt="" class="float_right"/>
    				<div class="container_head_text">
    				[[+menutitle]]
    				</div>
    				</div>
    				
    				
    				<!-- Container Content -->
    				<div class="container_content">
        <img src="[[+showroom]]" alt="[[+pagetitle]]" style="width:150px; float:left; padding:3px;" />
    				[[+introtext]]<br /><br />
    <a style="color:#000; font-weight:bold; text-decoration:none;" href="[[~[[+id]]]]" title="[[+pagetitle]]">More Information ..</a>
    				</div>
    
    </div>
    <br />


    The output is nothing its just img src="" I am sure I am missing something obvious but I cant tell what does anyone have any ideas.

    Many thanks

    Ian
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      I would first try a simple getResources snippet to make sure the image shows up. Then go to getArchives, then getPage.
        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
        • 38547
        • 98 Posts
        Quote from: sottwell at Jul 02, 2013, 02:58 PM
        I would first try a simple getResources snippet to make sure the image shows up. Then go to getArchives, then getPage.
        Yes good idea got blinkered trying to make getPage work anyway after plenty of changing i now have it working with this
        [[!getPage?
                 &parents=`49`
                 &depth=`3`
                 &tpl=`showroom1`
                 &sortby=`pagetitle`
                 &tvPrefix=``
                 &includeTVs=`1`
                 &processTV=`1`
                 &showHidden=`true`
                 &limit=`5`
                 &pageVarKey=`page`
                 &element=`getResources`
                 &elementClass=`modSnippet`
                 &sortdir=`ASC`
              ]]