I'm a bit of a newbie to Orchard CMS, and I've been digging around quite a bit and I can't seem to find a good direction (it's entirely possible I haven't been looking hard enough) on how to create a custom content type and/or part for a blog-like "instructional."
I am trying to replicate the functionality of this page:
The plan is to be able to select an image, choose whether it will appear on the left or right of the content, and then type the content into a content window. It should have more than one "Instructional" (think Blog) with multiple "Instructions"
(think Blog Post) each. Each image and post will be exactly the same height just as in the link above. A bonus to this would be to allow the user to choose that height when creating a new "Instructional."
If you can help, or at least point me in the right direction, I'd greatly appreciate it. Thank you for your time.
May 24, 2013 at 11:26 PM
The documentation explains how you can create custom content types and parts:
One way to do this is to create a new content type called "Instructional" which has a TitlePart, AutoroutePart, BodyPart and ContainerPart. Next, create a new content type called "Instruction" which has a TitlePart, AutoroutePart, BodyPart
Because the Instructional type has a ContainerPart and the Instruction type has a ContainablePart, Instructions can be contained by Instructionals.
To let the user specify the location of the image, you could add an Enumeration field to the Instruction type with two options: Left and Right (and configure the list to be a dropdown or radiolist). Then, from within your content view template, use this value
to determine whether the image should be rendered on the left or the right side of the image.
In case you aren't aware: there is a big Orchard Harvest conference happening the 13th and 14th of June in Amsterdam, which is great for both newcomers and experienced developers and themers. In case you're interested, more info can be found at: