Yep! Ditto is definitely your answer. If you’re anything like me you’ll need to do a lot of research first. Ditto is kind of difficult at first to grasp, but it is very powerful and flexible. I would start in the ditto section of the forums and see if anyone has done something similar and use it as a starting out point. But, in the end, with ModX, "there’s more than one way to skin a cat" - good luck.
Ill be going through alot of the forum posts and yours and see how I do. And nice website!
I’ve done pretty much want you want to do here.
All the information is contained in the individual project pages, and ditto pulls in and displays the info for the portfolio page. The portfolio thumbnails are resized dynamically from the main images by the phpThumb package.
That is exactly what im looking for! how long did that take to do?
I want to make sure I’m thinking the right way b4 I dont want to head in the wrong direction.
It took quite a while as I was trying out new things - I didn’t really keep track of the hours as I was working on it sporadically in my spare time.
It maybe worthwhile checking out this site regarding Ditto:
http://www.pogwatch.com/ditto.html
<ul id="portfolio-items"> [!Ditto? &tpl=`ditto-portfolio-tpl`!] </ul>
Yep, you just place the Ditto call in the content area of the document (or template) where you want the data aggregated.
This is my Ditto call within a list, for example:
<ul id="portfolio-items"> [!Ditto? &tpl=`ditto-portfolio-tpl`!] </ul>
The &tpl is the chunk of HTML used to display the <li>’s - in this chunk are placeholders that correspond to the document or template variables you want to display.
Ditto will grab data from the immediate children by default - it could come from anywhere if you wanted though.
<ul> [!Ditto? &tpl=`ditto-tpl`!] </ul>
<li>[+project-title+]</li>