Using template structure/contentplaceholders to build pages?

Posted by Community Admin on 04-Aug-2018 12:20

Using template structure/contentplaceholders to build pages?

All Replies

Posted by Community Admin on 14-Aug-2012 00:00

Hello,

I'm working on a Sitefinity module that is to generate a few pages on the fly. The URLs and text to use is already determined. What I'm trying to figure out is how I can create a template to say "I want the header here in the HTML, and the paragraph here". Then it creates a page record and drops in both the header and paragraph texts in the right content blocks.

I can see that when you have a content  block in the Template, it is essentially separate from the page controls, which makes sense, you want that content to only change when you modify the template itself. So how can I define locations that a page should use? Should I perhaps create a blank page record to use for this and duplicate it?

Note that I need to use the contentplaceholder id value or something that's recognizable to correctly assign content. For example ID="HEAD1", ID="Para1", this way I can put the right content in the right placeholder.




This thread is closed