It's possible that nested Sitecore sub-sites / placeholders are possible?

I have a Sublayout called TwoColumns that looks like this:

<div class="row"> <div class="column span8"><sc:placeholder runat="server" key="left-column"></sc:placeholder></div> <div class="column span4"><sc:placeholder runat="server" key="right-column"></sc:placeholder></div> </div> 

I would usually add other sublanguages ​​through my presentation data and point the placeholder as the left column or right column.

Now, let's say I need the same columns, but in the box on the left. Thus:

enter image description here

I could add sublayout TwoColumns to the left column ... but if I want to add something to one of these nested placeholders, how can I do this? Is it possible to set the “left column to left” as a placeholder?

How about if I want a second ROW of two columns? How can I indicate if I want my content to be in the first column on the left, or in the left column of the Nth row? Is Sitecore possible by default by default?

Note: “Just create a new subclass called NestedTwo columns”, this is not the solution I'm looking for. I would like to use a flexible grid.

Don't worry about the CSS system grid. This is a Sitecore issue only.

+6
source share
2 answers

This article is a really good start:

http://trueclarity.wordpress.com/2012/06/19/dynamic-placeholder-keys-in-sitecore/

With the above, I can use the same sub-tier (with dynamic key entries) several times, which is great. However, I found that you cannot NEST them, so it does not actually solve my original problem.

+2
source

In the project I'm working on, we had to do a similar thing.

We decided to use this solution: http://johnnewcombe.net/blog/post/17

Failing a line of code for a line does not work, but with some changes it worked for us ... I added a comment to the article about what needs to be updated.

+1
source

Source: https://habr.com/ru/post/920282/


All Articles