Ditto - 1. What is Ditto
From MODx Wiki
[edit]
Ditto - What is Ditto
Ditto is a page aggregator for MODx.
Examples
- You have an empty container/folder called 'Cars' with 3 different pages in it (Ferrari, Porsche, BMW).
- Ditto lets you aggregate all of these individual pages into one page.
- So now you have one page called 'Cars' that includes all of the pages in the Cars folder (Ferrari, etc.)
- What if you have 100 cars and you want to sort them by date?
- Ditto has extra functionality called filters that lets you sort your "aggregation" by date.
- You could also sort by title, published_date, id, etc.
- Note: Sorting by id means sorting by id's numerical value. Using the documents parameter instead of parents returns only a sort order by id number, not by id order specified in documents parameter.
- Ditto also lets you choose whether to sort by ascending or descending values.
- What if I want a page called automobiles that aggregates Cars, Trucks, and Jeeps?
- Ditto allows you to use multiple folders so you can aggregate pages from any section you would like and show them on your new 'Automobiles' page.
- What if I have 100 automobiles and only want to show 10 at a time?
- Ditto allows you to 'paginate' your aggregation.
- This lets you decide how many pages to aggregate at a time and creates links to the other pages in the aggregation (page 1, page 2, page 3, etc.).
Why use Ditto?
Ditto lets you include an unlimited number of individual pages in one page. This opens up your website to a lot of design functionality and customization. It also allows you to split sections up to individual editors/authors while aggregating the information on one page.
