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

Post renderer hook to access the html output stream of the component before sending the response.

Avatar

Avatar
Level 1
ramaa34753204
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
ramaa34753204
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
ramaa34753204
Level 1

06-05-2020

Hi Experts,

     My requirement is to find an id(key) and replace it with the value in the generated html. Since this would affect the out put of any component, I am hoping for any Pre renderer filter that could effectively take the html out put stream generated by each component and run this logic of find and replace. Is there any such hook that is provided by Sling or Adobe API. 

 

Rama.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

232 likes

Total Posts

294 posts

Correct Reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

232 likes

Total Posts

294 posts

Correct Reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile
Shashi_Mulugu
MVP

30-05-2020

You can build a service implementing TransformerFactory interface to rewrite the output html as needed.

 

This similar to ACscommons versionedclientlibs.

Answers (0)