26 Nov 2009
02 Dec 2009
Link to this post
Thank you for the code provided!
Please correct me if I'm wrong, but I think that using a surrounding div-Container means that the containing-box will also be visible on the page, even if the sitefinity-page doesn't place any content into the ContentPlaceholder... ?
Let's assume I have a two column-layout, where the sidebar could hold up to 5 boxes. I place a div-Container around each of these 5 boxes. Then I created a single template based on this single master-file, but without placing content inside these "side-boxes" in the template. The sitefinity-pages, which use this template place their own controls inside the sideboxes. Some pages make use of all 5 placeholder, some only use 2 or 3.
--> How can I "hide" the surrounding content-boxes in case the contentplaceholder isn't used?
I know - a workaround would be, to create different .master-pages and template for each number of sideboxes, but that doens't seem to be a best-practise-solution...