Hello, first post here and i want to say modx is just...absolutely amazing!! im "fairly" proficient in html/css, still have a ways to go with php and other languages, but learning modx has made coding very fun again and im almost ready to really publish my site!
However i had a question related to articles: is there a way to make a "specific" setting for [[+articles]] using the same articles container for different pages? Allow me to explain further:
I have a site with a "specific" blog page which is essentially my articles container. however on the "home" page i have a small section for recent posts. Now i know about the [[+latest_posts]] "snippet" (not sure what the right word is im still learning forgive me!) but on my main page it's not what im looking for, I'm actually looking to display the last two blog articles in the way that [[+articles]] does.
So to sum up, is there a way to do something like this on my main home page (outside of articles):
<div class="blogPostContent">
[[!Articles? &container=`15`]]
[[+articles]]
[[+paging]]
</div>
and then have this with a setting of "maximum 2 posts per page", while having a different setting like say "10 posts per page" in my actual articles container? I hope this makes sense. Any help is appreciated, if this is covered forgive me i tried to search for this but came up with nothing. Thanks for any insight!
edit: well silly me didn't read the articles documentation all the way until the "get articles stuff outside of articles" section <__< the answer if anyone stumbles with this is to use getResources versus trying to set two different setting configurations for your articles (where do i come up with these ideas lol)
so i basically did this:
[[getResources?
&parents=`10`
&tpl=`myTpl`
&showHidden=`1`
&limit=`8`
]]
the tpl i had to edit a bit to get it to fall inline with my other styles, and "&limit" is where you set the number of blog posts you want to display, "&parent" is where you set the resource id. sigh, how silly of me, hope no one went digging around to help solve this non issue. Guess i still have a bit more to learn but with each step it gets clearer
section to reference in articles documentation:
http://rtfm.modx.com/display/ADDON/Articles.Retrieving+Articles+Outside+of+Articles
[ed. note: wonderfulweb last edited this post 13 years, 6 months ago.]