<![CDATA[ Additional Latest Post chunk - My Forums]]> https://forums.modx.com/thread/?thread=97217 <![CDATA[Additional Latest Post chunk]]> https://forums.modx.com/thread/97217/additional-latest-post-chunk#dis-post-525850 I have 2 places where I want to display my latest posts: In the footer I want to pull in the latest 3 posts with limited information i.e. just a title and date and then when in the blog template I want to have a side bar that displays the normal style, title short summary number of comments etc.

Is there a way I can pass a value into [[+latest_posts]] that will determine which chunk to use? Or what would be the best way to accomplish this?

Thanks, Ross.]]>
ross88 May 21, 2015, 04:19 AM https://forums.modx.com/thread/97217/additional-latest-post-chunk#dis-post-525850
<![CDATA[Re: Additional Latest Post chunk]]> https://forums.modx.com/thread/97217/additional-latest-post-chunk#dis-post-525851 You could easily use getressources for this. Just have 2 different tpls where you set up which information is displayed. this can be placed wherever you want to have it.

[[!getResources? 
  &parents=`20`
&resources=`-1`
    &tpl=`blogPost`
&includeTVs=`1`
  &includeContent=`1`
  &limit=`3`
 &sortby=`menuindex`
&sortdir=`ASC`
]]


]]>
flanger May 21, 2015, 04:44 AM https://forums.modx.com/thread/97217/additional-latest-post-chunk#dis-post-525851