I want to use ContentBlocks for the MODX Cookbook. I have it installed, but after several weeks of poking at it from time to time, and reading and re-reading the documentation, I'm still having trouble figuring out how to set it up.
The Cookbook recipe pages are all the same. There are four basic sections, with the addition of image blocks and code blocks. Sometimes one of the blocks, the "solution" block, will get duplicated if the forum post has more than one post flagged as an answer.
So what I thought was to have four "blocks" with the structure of each block
- Introduction - mostly just a paragraph
- Question - link, username, question, within a specific HTML <section> element
- Solution - link, username, solution, again a specific HTML <section> element
- Discussion - just a heading and paragraphs
and of course use image, code, and other provided fields as appropriate.
My problem is that I don't know what to use to make these four blocks. Templates? Layouts? Should it all be in one template or layout? Should it be four templates in a layout?