AEM 6.2 Content Fragment Variations triggered by Responsive Layouts - Possible? | Community
Skip to main content
JDXC
February 23, 2017
Solved

AEM 6.2 Content Fragment Variations triggered by Responsive Layouts - Possible?

  • February 23, 2017
  • 3 replies
  • 766 views

I've been playing around with content fragments and am wondering if it's possible to have the fragment variations tie to specific responsive layouts

I created a fragment and 3 variations (main, tablet and mobile) When I toggle the responsible emulator, I'm only seeing the main variation. I was wondering if there's a way to tie the 2 together

Please advise

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

I guess the use-case that you are trying to achieve is not possible with Content fragment. 

Variations are designed for difference in channels (or, to a lesser extent, audiences). In this case, you are talking about a single channel (a website). 

I would suggest you write custom component for this.

~kautuk

3 replies

kautuk_sahni
Community Manager
Community Manager
February 24, 2017

Hi 

For full details about content fragment, i would recommend you fo go through this PDF:-

Link:- https://adobesummit.lanyonevents.com/2016/connect/fileDownload/session/76E56C0977D866C5D1A22CB406B3C502/L326_Siegel-L326_labguide_edelson_siegel.pdf

// This covers all the major aspect of Content fragment.

Coming back your question, there we need to modify content fragment component configuration. Click to wrench icon -> open component dialog -> in variation drop-down select mobile as a variation name.

Step by step approach is given in this PDF.

I hope this would help you.

~kautuk

Kautuk Sahni
JDXC
JDXCAuthor
February 24, 2017

Thanks for the response however this doesn't answer my question

I've already gone thru this document several times and haven't been able to find anything regarding my inquiry

I understand that you can change variations with the content fragment but what I'm looking for is to have the variations tied to specific breakpoints on the same page. For example, on desktop view I'm using the MAIN variation. When i switch to Tablet I switch the fragment to TABLET variation. When I toggle back to desktop view, it's showing the tablet variation whereas I was hoping it'd show the MAIN variation

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
February 27, 2017

I guess the use-case that you are trying to achieve is not possible with Content fragment. 

Variations are designed for difference in channels (or, to a lesser extent, audiences). In this case, you are talking about a single channel (a website). 

I would suggest you write custom component for this.

~kautuk

Kautuk Sahni