since ‎12-06-2019
‎10-12-2019
dimitrioss83126
Level 2
Re: Weird content tree behaviour dimitrioss83126 - Adobe Experience Manager
I found the solution. I looked into ui.ContentTree.js that is responsible for creating the markup of the content tree.A component is added as a sub-component of a component if the parent has set the cq:isContainer node to "true".Then all the components that are added with data-sly-resource are added as childs of the parent component.
964
Views
2
Likes
0
Answers
Re: Weird content tree behaviour dimitrioss83126 - Adobe Experience Manager
Hi Arun,In the crx the nodes looks ok. They are nested properly.So, you think it's an issue with the content tree itself, not with my component implementation?
949
Views
0
Likes
0
Answers
Weird content tree behaviour dimitrioss83126 - Adobe Experience Manager
Hello,I'm struggling with a component content tree issue that I've got on my custom component.I'll attatch a screenshot to make it simpler My custom component named "Calendar Card Item" is injected via:data-sly-resourcetwo other components are added inside it - Button and Text. Unfortunately, in the content tree they are not below the Calendar Card Item, they are not nested. Is this a known issue?I add like this:I tried replacing sly with div and adding a custom css class but it did not help. Do...
1414
Views
2
Likes
3
Answers and Comments
Re: Filter that adds dynamic css class to experience fragment dimitrioss83126 - Adobe Experience Manager
Hi again Arun,thanks for your time and the sample code but are you sure that the above java filter worked for an editable experience fragment for example in structure mode on a template? I agree with you that is working but not for a single edition of an experience fragment (it works after page refresh though).The reproduction steps are: 1. Having a template with an added experience fragment in structure. 2. Opening the dialog by clicking the wrench on the experience fragment 3. picking the same...
911
Views
0
Likes
0
Answers
Re: Filter that adds dynamic css class to experience fragment dimitrioss83126 - Adobe Experience Manager
Hi Arun,Of course I can. I set it as you proposed, but unfortunately it's not working.Code used:@Component( service = Filter.class, property = { EngineConstants.SLING_FILTER_SCOPE + "=" + EngineConstants.FILTER_SCOPE_COMPONENT, EngineConstants.SLING_FILTER_RESOURCETYPES + "=" + "cq/experience-fragments/editor/components/experiencefragment", Constants.SERVICE_RANKING + ":Integer=" + 201 }@Overridepublic void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filt...
906
Views
0
Likes
0
Answers
Filter that adds dynamic css class to experience fragment dimitrioss83126 - Adobe Experience Manager
Hello,I'm trying to implement a Filter that adds a css class into the div of ExperienceFragment. Everything works fine, until we change the ExperienceFragment (single one) via a cq:dialog. The IncludeOptions do not pass the css class.(Sling filter activated properly and added the "footer" class on page refresh).After editing single XF, like,"footer" class is not applied.I'm using sling sling.filter.scope = "COMPONENT" and sling.filter.resourceTypes pointing to "cq/experience-fragments/editor/com...
1566
Views
0
Likes
5
Answers and Comments
Likes given to
Likes from