sublayout

Replacing sitecore layout in parent and child items

怎甘沉沦 提交于 2019-12-25 16:27:13
问题 I am creating a new footer sublayout in sitecore for use in multiple sites (we run a multi site environment). Currently a sublayout called StandardLayout is used, but I would like to change this across several of our sites to a new layout GlobalFooter. The problem is that child items of the Home Page have overridden layout components, so what I would like to know is if there is an easy way to change the layout without losing all of the overridden components (as I expect that I may need to

Sitecore 8: Get Sublayout item when .ascx file is shared

允我心安 提交于 2019-12-13 21:37:14
问题 I have two sublayouts: Grid-1-2 and Grid-2-1. The two sublayouts are sharing a single ASCX file (not a good sitecore practice but i need it this way). The problem is that in the ASCX codebehind, i want to see if the current selected grid is Grid-1-2 or Grid-2-1 ?! I have tried using both Datasource and RenderingId techniques but to no effect. EDIT I was wondering if i can get the "Parameters" field from "Data" section of the sublayout. This would do the trick. All suggestions are welcomed.