Hello again!
Ok, so I got to work with this... and I’m having a hard time figuring everything out. Good thing I still didn’t get to the image galleries, hehe.
So, this is how I approached my problem:
- Created a couple child documents inside the index page. Not published (I don’t want them to be since I’m not linking to them, just showing them in full), not visible in menu. Set a page title and a couple paragraphs on each of them.
- Created a chunk called "ditto_basicparagraph" with the following code:
<div class="grid_15 prefix_1 suffix_1 alpha omega pushdown30">
<h3>[+pagetitle+]</h3>
[+content+]
</div>
- Then, in my index page (the parent for the content), I put the ditto call:
[[Ditto? &tpl=`ditto_basicparagraph` &showPublishedOnly=`0` &total=`2`]]
Ok, that renders as expected. But problems arise, again related to making the content fully dinamic and easily updated.
What if the editor wants to add a different kind of item after those 2? For example a div with some different classes than the above one plus some other content structure. I should make another tpl with that different structure and then make a new Ditto call with that custom tpl? That would force me to revise and tweak the code every time the editor adds some modified (even if slightly) content. Also, as stated in a previous post I want the editor to not mess around with the code at all and have it super simple, that is, just somehow select the kind of content he wants to add and then write a heading and some paragraphs, hit save, done.
Or... what if the editor wants to first put a paragraph there, then a gallery, then another paragraph? That’d be 3 ditto calls, each targeting the proper document with its custom tpl. What if there were 10 items, how to filter those?
Apart from that, I tried Quick Manager as well as managermanager, and don’t really understand how to set them up. The way I see it, Quick manager lets you edit the document in the preview, not the manager. The whole document that is, not a certain paragraph or header, that is what I need. Again, the html code should be invisible to the editor, and a rich text editor is not an option since the editor could accidentally break the layout. Regarding managermanager, I just don’t know how to use it, gotta look around again for some info on it which I haven’t been able to find yet.
I’m completely lost and getting quite a bit frustrated... I just can’t see the big picture so to speak, or like you said Markoj, how everything interacts...
Oh I also tried Jot as Susan suggested, but again I don’t know how to use it, all I got out of it was a form to submit a comment. Is there an undocumented way to use it for this task? I read quite a lot about all this, ditto, jot from different resources but can’t get my head around it. I’d totally know how to use them in a normal scenario (making a blog, paginating the results, etc) but I can’t see how to adapt it to what I need.
So uh... heeeeeeeelp!
EDIT: This is the site in its static form (I’m developing the MODx version with Xampp first) so you can see how the whole structure looks ->
http://bit.ly/aiTctL