1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Using template structure/contentplaceholders to build pages?

Using template structure/contentplaceholders to build pages?

1 posts, 0 answered
  1. Aaron
    Aaron avatar
    4 posts
    Registered:
    19 Jul 2012
    14 Aug 2012
    Link to this post
    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.




1 posts, 0 answered