I’ve a feeling this topic holds the answer to my own question, but I don’t know how to use the information already supplied (I’m a new MODx user struggling to keep my head above water).
At
http://euro-racing.net/ you’ll find the beginnings of a news section on the home page.
There are three folders within the home page folder (viewable in News menu on right). These are my news categories.
There are three sample posts, one within each news category. There is also a post stating that I am building a news section - this resides right within the home/news page.
I’d like to find out how to do the following:
- Call Ditto from within the home/news page to have it display only posts, not folders.
- Call Ditto from within each of the category folder pages to have it display only the relevant posts within each respective category. (I realise I could just change $startID three times for this, but that seems somewhat contrived and undynamic.)
Quote from: Mark at Aug 19, 2006, 04:32 PM
You could just use [~[+parent+]~] for the URL and my getDoc snippet like so [[getDoc?id=[+parent+] &field=`pagetitle`]] for the title.
I think this could be what I need, but I don’t understand what it does, how it does it and where it goes.
Many thanks.