Expand my Community achievements bar.

SOLVED

Externalize cq:includeClientLib Tag

Avatar

Level 2

Hi ,

I have written a tag to externalize the urls on the rendered html on my page . I am using that tag to externalize <a href> and src attributes .

I want to externalize the <link rel="stylesheet" href="/etc/....." type="text/css"/> which is rendered from <cq:includeClientLib css="designs.testproject">

 

How can i use my tag which receives a URL as parameter to externalize URL rendered through a category name given in  <cq:includeClientLib> tag.

My tag syntax is like this <o:link path="url to externalize"/>

Please help in this .

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi,

You can do this with a rewriter transformer. See https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/ad... for an example of something similar.

Regards,

Justin

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

Hi,

You can do this with a rewriter transformer. See https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/ad... for an example of something similar.

Regards,

Justin