We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21714
    • 10 Posts
    Hello!

    I’m not very experienced with MODx. Finished several sites with Evolution, and this is my first touch to the Revolution. Using Revolution 2.0.0-pl rev7212. I’ll try to be as specific as possible rolleyes

    I’m creating a news page and under this page are news items, each item in it’s own document. I have assigned template variable news_image to the template, and it’s input type is image and output is image.

    I’m using getResources to fetch all required information.
    [[getResources? &parents=`34` &tpl=`news_preview_fi` &includeTVs=`1` &processTVs=`1`]]


    Here’s the chunk for news item:
    <div class="contentbox newsbox clearfix">
    	<p class="date">  
    		<span>
    			[[+publishedon:strtotime:date=`%d.%m.%Y`]]
    		</span>
      	</p>
    
    	<h2>
    		[[+pagetitle]]
    	</h2>
    	<p>
    		[[+introtext]]
    	</p>
    
    	[[*news_image]]
    	
    	<ul class="bulletlinks">
    		<li>
    			<a href="[[~[[+id]]]]">
    				Read more
    			</a>
    		</li>
    	</ul> 
    </div>


    Problem is that the template variable [[*news_image]] doesn’t output anything if I’m using it inside the chunk. If I try to change input type of TV to the text for example, everything works fine. Also, if I try to use TV in document content, no problems with this either.

    Is this a bug or I am missing something here? wink
    Thanks for your time.

    -Noki


      • 28215
      • 4,149 Posts
      Do:

      [[getResources? &parents=`34` &tpl=`news_preview_fi` &includeTVs=`1` &processTVs=`1` &tvPrefix=``]]


      and in your chunk:

      [[+news_image]]
      
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 21714
        • 10 Posts
        Fixed.

        Thank you very much!
          • 20196
          • 13 Posts
          Three days combing through the Dashboard and forums finally got it right thanks.