-
☆ A M B ☆
- 24,524 Posts
The news publishing section is only documents in a certain part of the Document Tree structure. Create a new document, name it News. It will be the parent/container of your News section, as well as displaying your list of news article summaries with links to the individual news pages. Documents can be both web pages and parent/containers for other documents.
Now, right-click on that new News document, and choose "Create Document here". Make your first news document. The easiest way to deal with the news section from now on is to simply "Duplicate" this document for all the other news documents you want, then edit them. (note that I differentiate between the News document and news documents. The News document is the parent, the one that will show up on the site’s menu).
You’ll have your Ditto snippet tags in the News document. You can have other Ditto calls on other pages, for example to have a few news items on your home page. The Ditto snippet is told with parameters (like the query string on a URL) where to go get its news items from, how many to display, and what chunk to use as a view template for each item. See the ditto.modxcms.com site for full details on how to use Ditto.
-
☆ A M B ☆
- 24,524 Posts
Edit those news documents and clear the "Show in menu" checkbox. Now, in your main News document, put a Ditto snippet call:
[[Ditto? &parents=`[*id*]`]]
Do a little looking into the
Ditto documentation for how to configure Ditto to behave exactly as you like. You’ll probably mostly be interested in the parameters to begin with.