Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Challenges in terms of overlaying of /libs/cq/personalization/components/target/engine_cq.jsp

Avatar

Community Advisor

As we know that

Final (granite:FinalArea) - Defines a node as final. Nodes classified as final cannot be overlaid or inherited. Final nodes can be used directly via sling:resourceType. Subnodes under final node are considered internal by default like the below one - 

DEBAL_DAS_0-1648486986357.png

 

But now I need to add some custom logic in following file /libs/cq/personalization/components/target/engine_cq.jsp as per my project requirement.

 

To overcome this challenge one idea has come to mind and I would like to share it here so that all of you could review and share your thoughts :

 

 

Here is my approach - 

 

I need to manipulate  List<Teaser> teaserList in engine_cq.jsp.

Already I have decompiled the OOTB[TargetedContentManager] service and bundle associated with engine_cq.jsp and identify the method exactly where I need to add my custom logic so that it will work for my project and won't make any impact with remaining AEM sites.

 

Problem with the above approach is if we do upgrade then we will be losing our changes[custom logic].

 

@Arun_Patidar  @Jörg_Hoh @kautuk_sahni @lukasz-m @anish-s and others please suggest alternate approach also.

0 Replies

Avatar

Community Advisor

Have not looked in detail in local, but could there be a scope to see if we can extend a pertaining class and override the method ?