19 Jul 2007
14 Oct 2008
Link to this post
I often surround blocks of content within a page with some containing markup to create a visual container. This is a particularly challenging task to accomplish with Sitefinity. It's easy to drag several controls to placeholders on the page, but the only way to surround those control with additional markup is to either embed it within the HTML of the Generic Content control, or for other controls to modify the control source itself. Neither of these solutions is ideal.
Another option is to create a different master page and upload it as a new template. However, with this model, I end up almost creating a new master page for each actual page. This is not ideal either.
To see an example of this type of layout, look at the nbc.com home page. The surrounding markup for the containers is something like this:
...actual content goes here...
Other examples, such as alineauto.com, may require more complex markup.
It would be handy if each control exposed a Pre-Markup field and a Post-Markup field. Would you consider including this in the 4.0 release? Or, is there already a more elegant solution available that has so far evaded me?