Feb 26, 2014 at 7:58 AM
Edited Mar 11, 2014 at 9:35 AM
I'm currently implementing our redesigned website in Orchard, and I need some help or pointers on how to set some things up. First let me explain what I have so far.
In our design, we have several "Quotes" per page that need to rotate every x seconds. Every quote has two "lines", line1 should be displayed in the BeforeContent zone, and line2 should be displayed in the AfterContent zone. So I've created
parts, partrecords, drivers and handlers for these objects:
This works and I can create QuoteGroups and Quotes and they are stored in the database.
What I would like to do now is to modify the Page content type so I would have to select a QuoteGroup from a list of existing QuoteGroups already created. I'm not sure how to do this. I tried adding the QuoteGroup content part to the page content type but then
it renders the QuoteGroup editor template when I create or edit a page. I guess I should somehow show a different editortemplate?
When the above has been realized, I would like to render the Quotes in my page. I think the best place to do this is in my custom theme? Using the .As<QuoteGroupPart>() extensions method? This is a guess as I can't try it at the moment because I'm stuck
on problem 1.
Any help is greatly appreciated