Questions tagged [sublayout]
21 questions
6
votes
1 answer
Copying sitecore rendering to new template programmatically using renderingDefinition.ItemId?
I have a custom sitecore button which changes the template of the current item, simple enough.
However as part of this I'm trying to also migrate the renderings of the old layout to a new layout if it's of a certain sublayout type by ItemId.…

danmac
- 218
- 2
- 10
2
votes
3 answers
Sitecore 8: Change of datasource template for a sublayout
I have a doubt regarding the change of datasource template of a sublayout. Now, there are two sublayouts: Sub1 and Sub2 which are having Template1 as their datasource template. Until the time I discovered that i need a different datasource template…

Prathamesh dhanawade
- 493
- 5
- 27
2
votes
1 answer
Can I have different sections with same place holder in Sitecore
Below is my sublayout called SectionWrapper
check this
I want to achieve is multiple "sections" with different placeholders…

Mohit Dharmadhikari
- 3,750
- 2
- 20
- 27
2
votes
1 answer
Sitecore Navigation Menu Sublayout
I'm trying to use a sitecore navigation sublayout. Right now I am using 2 different ones. One is used on the parent item and it pulls all of the child items. The other is used on the child items, that just pulls its siblings. I want to use one…

Matthew Loeffler
- 53
- 8
2
votes
1 answer
Sitecore: Sublayout with preview image
Can anybody tell me how to add a preview image when i am selecting a rendering while adding a component in the Page Editor? I just still have there a default sublayout icon. I have the Nicam demo site from Sitecore and there are some images, but I…

Michal Seidl
- 35
- 4
1
vote
3 answers
Display Sitecore MVC rendering inside a Sitecore sublayout (Webforms page)
I've converted a sublayout to a MVC rendering and it needs to be statically bound to another sublayout.
The old sublayout was bound using
Now that the component is a rendering…

Tay
- 53
- 1
- 7
1
vote
2 answers
Sitecore ECM 2.1 - branches, sublayouts and dynamic datasources
It's my first time implementing Sitecore ECM feature. I've cut up some html templates into layouts and sublayouts, created the datasources I needed, and made a branch template with the $name item set to be of template "AB Testable…

munsense
- 49
- 4
1
vote
1 answer
Sitecore: How to reference the rendering parameters of a sublayout from a nested XSLT rendering
I have a Rendering Parameter Template that is assigned to a sublayout(.ascx). Within the markup of that sublayout I reference an XSLT rendering using the sitecore control.
How can I reference the Rendering Parameter Fields from the nested XSLT…

Josh Wheelock
- 369
- 4
- 9
1
vote
0 answers
Sitecore: User Controls not rendering when used alone, but renders as a sublayout
I have a user control that i have registered in the web.config and i'm using in another user control.
the structure looks like this
Base layout
home sublayout
feature user control 1
feature user control 2
when i use the user control as a user…

munsense
- 49
- 4
1
vote
1 answer
What rendering should i use for Multivariate Testing between Sublayouts in Sitecore
I Have numbers of sublayouts with them I want perform MVT in Sitecore .So i am not able to find which rendering should i use to perform the test .
I have taken reference of the article
Multivariate Testing for Sublayouts in Sitecore
But i want…

Shailesh
- 492
- 3
- 9
- 27
1
vote
1 answer
How do I load a Sitecore sublayout automatically so that permissions are respected?
I've created a sublayout (usercontrol) with some simple html. I want to display this sublayout only if the user belongs to a certain role.
If I use the built in sitecore developer center to add the sublayout, I end up with something like
…

lincolnk
- 11,218
- 4
- 40
- 61
0
votes
1 answer
Sublayer resizing to UIView bounds in Swift
I'm trying to put an AVCaptureVideoPreviewLayer as a sublayer in a UIView element. I tried to set its frame to the UIView bounds by using:
cameraPreviewLayer = AVCaptureVideoPreviewLayer(session: captureSession)
cameraPreviewLayer?.videoGravity =…

Siemen Gijbels
- 35
- 1
- 1
- 17
0
votes
2 answers
Sitecore 8: Get Sublayout item when .ascx file is shared
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…

Prathamesh dhanawade
- 493
- 5
- 27
0
votes
1 answer
Sitecore: Accessing control from sublayout
I have a master page in Sitecore using sublayout:
I would like to access a control inside this sublayout from layout page (.aspx) that uses the same master page. I have tried something…

lyrikk
- 15
- 5
0
votes
2 answers
Sitecore Auto-Save If Sublayout Added on the Page
Is there anyway to make auto-save once I added a sublayout component?
I created one sublayout and if I add it on the page in page editor, it doesn't appear on that time. By saving the item, it appears on the page editor.
So, I'd like to make if…

Jay
- 1,170
- 1
- 11
- 34