dxa-web-application-dotnet icon indicating copy to clipboard operation
dxa-web-application-dotnet copied to clipboard

Component Presentations using templates from the same region are always collapsed into a single region

Open willprice76 opened this issue 8 years ago • 11 comments

If I have a page with the following CPS:

Teaser (2-column) Teaser (2-column) Article Teaser (2-column) Teaser (2-column)

When the page is rendered, the 2 groups of 2-col teasers will be collapsed into a single 2-col region, whereas what I expected, as an editor is for the article to appear between two separate 2-col regions.

willprice76 avatar Jul 25 '16 11:07 willprice76

If you want to have two Regions which use the 2-Column Region View, you should ensure that you define two Regions with distinct names. For that purpose, we introduced a Region Name metadata field next to Region View Name in DXA 1.2.

rpannekoek avatar Jul 25 '16 11:07 rpannekoek

This sounds like I would need to duplicate all my component templates - so not an ideal solution - or do I misunderstand?

willprice76 avatar Jul 25 '16 12:07 willprice76

No, that's correct; you will need to have CTs for each distinct Region; the CTs don't represent much more than the MVC metadata. In general, the currently solution of using CT metadata to indicate Region is not ideal, but a necessary evil until we get full Region support in SDL Web itself (which might happen this year :-))

rpannekoek avatar Jul 25 '16 12:07 rpannekoek

I created a PR with what I think is a better solution. https://github.com/sdl/dxa-web-application-dotnet/pull/27

willprice76 avatar Jul 25 '16 13:07 willprice76

Second this as an improvement. Would be a big improvement if this functionality was enabled

bb-ceccles avatar Jul 25 '16 14:07 bb-ceccles

+1

ablyth-building-blocks avatar Jul 25 '16 15:07 ablyth-building-blocks

+1

AndyMcInnes avatar Aug 12 '16 11:08 AndyMcInnes

+1

rsleggett avatar Aug 12 '16 12:08 rsleggett

+1 (component presentation metadata would be the best solution)

Vouzamo avatar Aug 12 '16 13:08 Vouzamo

TSI-1945 (internal issue ID for tracking purposes)

rpannekoek avatar Sep 12 '16 14:09 rpannekoek

+1

justsayantan avatar Feb 06 '17 14:02 justsayantan