how to override ACS common component JSP? | Community
Skip to main content
jayv25585659
Level 8
May 26, 2021 6:20 AM UTC
Solved

how to override ACS common component JSP?

example:

This  file exists => /apps/acs-commons/components/content/twitter-feed/twitter-feed.jsp.

Can I override this file in my code repository?

I'm trying to avoid

  1. downloading the ACS commons repo on my local
  2. make the changes
  3. compile/build/install the package

Thank you.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Asutosh_Jena_
Asutosh_Jena_Accepted solution
New Participant
May 26, 2021 6:36 AM UTC

Hi @jayv25585659 

 

You can orerlay the component on your code base by using sling:resourceSuperType and then update the script as required in your proxy component.

 

/apps/yourproject/components/content/twitter-feed - on this node add the sling:resourceSuperType with "acs-commons/components/content/twitter-feed"

Then add the twitter-feed.jsp under your proxy component i.e. here /apps/yourproject/components/content/twitter-feed/twitter-feed.jsp and update the code. No need to add any dialogs or other nodes. just the parent node and the .jsp file should be enough.

 

 

Thanks!

 

 

1 reply

Asutosh_Jena_
Asutosh_Jena_Accepted solution
New Participant
May 26, 2021 6:36 AM UTC

Hi @jayv25585659 

 

You can orerlay the component on your code base by using sling:resourceSuperType and then update the script as required in your proxy component.

 

/apps/yourproject/components/content/twitter-feed - on this node add the sling:resourceSuperType with "acs-commons/components/content/twitter-feed"

Then add the twitter-feed.jsp under your proxy component i.e. here /apps/yourproject/components/content/twitter-feed/twitter-feed.jsp and update the code. No need to add any dialogs or other nodes. just the parent node and the .jsp file should be enough.

 

 

Thanks!

 

 

Translate