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
BedrockMission!

Learn More

View all

Sign in to view all badges

how to override ACS common component JSP?

Avatar

Avatar
Validate 25
Level 4
jayv25585659
Level 4

Likes

46 likes

Total Posts

123 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Validate 25
Level 4
jayv25585659
Level 4

Likes

46 likes

Total Posts

123 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 5
View profile
jayv25585659
Level 4

25-05-2021

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

551 likes

Total Posts

663 posts

Correct Reply

191 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

551 likes

Total Posts

663 posts

Correct Reply

191 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile
asutosh_jena
Level 10

25-05-2021

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.

 

asutosh_jena_0-1622011160604.png

 

Thanks!

 

 

Answers (0)