Expand my Community achievements bar.

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

Avatar

Employee 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].

 

@arunpatidar  @Jörg_Hoh @kautuk_sahni @lukasz-m @Anish-Sinha and others please suggest alternate approach also.

1 Reply

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 ?