<![CDATA[ pulling latest articles onto homepage - My Forums]]> https://forums.modx.com/thread/?thread=72270 <![CDATA[Re: pulling latest articles onto homepage]]> https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=3#dis-post-542554
Thank you for getting back to me, for some reason. it still not working for me.

Really appreciate for anyone who can help me

Magz]]>
magzzs Jun 17, 2016, 11:04 AM https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=3#dis-post-542554
<![CDATA[Re: pulling latest articles onto homepage]]> https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=3#dis-post-542527
<p><img src="[[pthumb? &input=`[[*tv.image]]` &options=`&h=100&w=100&zc=2`]]" alt="[[+pagetitle]] photo" style="float:left; margin-right:20px;">
<a href="[[~[[+id]]]]">[[+pagetitle]]- [[+publishedon:strtotime:date=`%b %d, %Y`]]<br />Read more</a></p>
]]>
lukemcd Jun 16, 2016, 11:43 AM https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=3#dis-post-542527
<![CDATA[Re: pulling latest articles onto homepage]]> https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=3#dis-post-542526 Quote from: lukemcd at Jun 13, 2016, 01:30 PM
magzzs, you need to add "includeTVs" and "processTVs" to the getResources call to pull in TVs. So your call would change to:

Then in your tpl chunk use something like this to see featured image:

<img src="[[+tv.featured_image]]">


Thanks a million, really appreciate it! still have a minor issue, it is not picking up for some reason:


<p><img src="[[!getResources? &parents=`348` pthumb? &input=`[[*tv.image]]` &options=`h=100&w=100&zc=2` &s3output=`6`]]" alt="[[+pagetitle]] photo" style="float:left; margin-right:20px;">
<a href="[[~[[+id]]]]">[[+pagetitle]]- [[+publishedon:strtotime:date=`%b %d, %Y`]]<br />Read more</a></p>


The chunk for image is under article folder if that make a difference...

Thank you in advanced

Magz]]>
magzzs Jun 16, 2016, 11:28 AM https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=3#dis-post-542526
<![CDATA[Re: pulling latest articles onto homepage]]> https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-542401
[[getResources? 
    &parents=`348` 
    &tpl=`blog_item` 
    &limit=`3` 
    &includeContent=`1`
    &sortby=`publishedon`
    &sortdir=`DESC`
    &showHidden=`1`
    &includeTVs=`1`
    &processTVs=`1`
]]


Then in your tpl chunk use something like this to see featured image:

<img src="[[+tv.featured_image]]" />
]]>
lukemcd Jun 13, 2016, 08:30 AM https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-542401
<![CDATA[Re: pulling latest articles onto homepage]]> https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-542399
The code work well for the article on the homepage, I would love to add the "Featured image" which is template variables with the blog. Is this possible

[[getResources? 
&parents=`348` 
&tpl=`blog_item` 
&limit=`3` 
&includeContent=`1`
&sortby=`publishedon`
&sortdir=`DESC`
&showHidden=`1`
]]


Thanks

Magz

]]>
magzzs Jun 13, 2016, 08:19 AM https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-542399
<![CDATA[Re: pulling latest articles onto homepage]]> https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-409522
Thanks for replying. I'm always forgetting to flush my core/cache manually. I edited my 5 pre-Articles blog posts so that they are hidden from menus. They no longer display in my default (non-Articles) templates.

It's the equivalent of telling Wayfinder to display all Parents and Children except the Article container...

Once MODX Resources are imported into the Articles Container, they retain their existing state and cannot have their attributes changed unless Articles' Property Set (??....nope) or Custom Manager (??.... nope again) is changed to allow that.

That's why my 5 pre-Articles posts were displaying in the Wayfinder menu, but none of my new entries were. It had nothing to do with getResources, and everything to do with the fact that Articles Manager interface doesn't display them.

Thanks for the snippet example for display options on Resources that are external to Articles.
]]>
ultrasef Jan 28, 2012, 04:20 PM https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-409522
<![CDATA[Re: pulling latest articles onto homepage]]> https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-409509
&limit=``


getResources has a default limit of 5.

* Also *
Please note Articles was updated since this thread began and you can now use the packaged Articles snippet instead of getResources on pages outside of Articles container:
[[!Articles? &container=`ID OF CONTAINER`]]
[[+latest_comments]]
]]>
lukemcd Jan 28, 2012, 02:14 PM https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-409509
<![CDATA[Re: pulling latest articles onto homepage]]> https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-409487
The issue: I don't use pagetitles in my TPLs, and most of the time I don't use introtext, preferring to create "teasers" in my description.

I imported my existing MODX blog into Articles, which doesn't have description nor longtitle TVs, nor does it have hide from menus.

That's why my old MODX blog entries show up in Wayfinder, and the new ones don't. I figured I would just edit those 5 pre-Articles entries and manually set "hidemenu" to 1. I thought that would work, but it doesn't.

Suggestions?]]>
ultrasef Jan 28, 2012, 06:42 AM https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-409487
<![CDATA[Re: pulling latest articles onto homepage]]> https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-409474 boundaryfunctions Jan 28, 2012, 03:33 AM https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-409474 <![CDATA[Re: pulling latest articles onto homepage]]> https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-402415 lukemcd Dec 05, 2011, 11:41 AM https://forums.modx.com/thread/72270/pulling-latest-articles-onto-homepage?page=2#dis-post-402415