Nested Masterpages
The templates I'm trying to use are two nested masterpages from one master. The contentplaceholders do get injected into the page but do not display as areas for controls to be dragged into. I have tried with all major browsers and tried to attach the files for reference with no success.
<
div
id
=
"container"
>
<!-- start container -->
<!-- start header -->
<
div
id
=
"header"
>
</
div
>
<!-- end header -->
<!-- start primaryNav -->
<
div
id
=
"primaryNav"
>
</
div
>
<!-- end primaryNav -->
<!-- start content -->
<
div
id
=
"content"
>
<!-- start main -->
<
div
id
=
"main"
>
<
div
id
=
"ctl00_ctl00_contentPlh_mainCplh_RadDockZonemainCplh"
class
=
"RadDockZone RadDockZone_Sitefinity rdVertical "
placeholderid
=
"mainCplh"
style
=
"min-width:10px;min-height:10px;"
>
<
div
class
=
"RadDock RadDock_Default rdPlaceHolder"
id
=
"ctl00_ctl00_contentPlh_mainCplh_RadDockZonemainCplh_D"
style
=
"display:none;"
>
<!-- -->
</
div
><
input
id
=
"ctl00_ctl00_contentPlh_mainCplh_RadDockZonemainCplh_ClientState"
name
=
"ctl00_ctl00_contentPlh_mainCplh_RadDockZonemainCplh_ClientState"
type
=
"hidden"
/>
</
div
>
</
div
>
<!-- end main -->
<!-- start sidebar -->
<
div
id
=
"sidebar"
>
<
div
id
=
"ctl00_ctl00_contentPlh_sidebarCpl_RadDockZonesidebarCpl"
class
=
"RadDockZone RadDockZone_Sitefinity rdVertical "
placeholderid
=
"sidebarCpl"
style
=
"min-width:10px;min-height:10px;"
>
<
div
class
=
"RadDock RadDock_Default rdPlaceHolder"
id
=
"ctl00_ctl00_contentPlh_sidebarCpl_RadDockZonesidebarCpl_D"
style
=
"display:none;"
>
<!-- -->
</
div
><
input
id
=
"ctl00_ctl00_contentPlh_sidebarCpl_RadDockZonesidebarCpl_ClientState"
name
=
"ctl00_ctl00_contentPlh_sidebarCpl_RadDockZonesidebarCpl_ClientState"
type
=
"hidden"
/>
</
div
>
</
div
>
<!-- end sidebar -->
<
div
id
=
"ctl00_ctl00_contentPlh_RadDockZonecontentPlh"
class
=
"RadDockZone RadDockZone_Sitefinity rdVertical "
placeholderid
=
"contentPlh"
style
=
"min-width:10px;min-height:10px;"
>
<
div
class
=
"RadDock RadDock_Default rdPlaceHolder"
id
=
"ctl00_ctl00_contentPlh_RadDockZonecontentPlh_D"
style
=
"display:none;"
>
<!-- -->
</
div
><
input
id
=
"ctl00_ctl00_contentPlh_RadDockZonecontentPlh_ClientState"
name
=
"ctl00_ctl00_contentPlh_RadDockZonecontentPlh_ClientState"
type
=
"hidden"
/>
</
div
>
</
div
>
<!-- end content -->
<!-- start footer -->
<
div
id
=
"footer"
>
</
div
>
<!-- end footer -->
<!-- end container -->
</
div
>
Hello nenwmn,
Thank you for using our services.
The support for nested templates within Sitefinity 4.0 Beta is working with templates you build from the Template Editor. You can create a base template from the Sitefinity UI and add parent place holders. Then create child templates which will use the first one as base. We are currently struggling to parse content place holders from nested master pages and there is no full support for nested master pages in the Sitefinity 4.0 Beta. For now we would advise you to go about this through the UI and use layout elements to be holders for your controls.
Regards,
Radoslav Georgiev
the Telerik team
Thank you, I'll add custom masterpages for each layout and update the code when Sitefinity supports nested masterpages. I appreciate the layout functionality out of the box but cannot adapt due to the inclusion if inline styles. Is there a way currently to prevent the Layout elements being accessible during design view.
Best Regards,
Neil
Hi nenwmn,
This can be achieved by revoking permissions for content place holders.
Greetings,
Radoslav Georgiev
the Telerik team
How does revoking permissions for contentplaceholders remove the layout elements option. I have attached a image.
Best Regards,
Neil
Hi nenwmn,
It will not hide the layout element for now. However for each layout element you can set who can view it, modify it, move it, etc. For pages you can set which user can add widgets and add layout elements.
All the best,
Radoslav Georgiev
the Telerik team