Expand my Community achievements bar.

SOLVED

How to make multiple re-writers work using ACS Common?

Avatar

Level 1

We are using ACS Commons static reference rewriter and ACS Commons versioned-clientlibs, but only one is working at a time which is having higher order no.

 

Also we implemented custom static reference rewriter [domainsharding]. Now only one is working at a time which have higher order no.

 

But we need all three to be worked. Please find below all the three configurations:

 

Versioned-clientlibs

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
   jcr:primaryType="sling:Folder"
   contentTypes="[text/html]"
   enabled="{Boolean}true"
   generatorType="htmlparser"
   order="{Long}2"
   serializerType="htmlwriter"
   transformerTypes="[linkchecker,versioned-clientlibs]"
/>

 

Static reference rewriter

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
   jcr:primaryType="nt:unstructured"
   contentTypes="[text/html]"
   enabled="{Boolean}true"
   generatorType="htmlparser"
   order="{Long}1"
   serializerType="htmlwriter"
   transformerTypes="[linkchecker,akamai-static]"
/>

 

Custom rewriter Domainsharding

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
   jcr:primaryType="sling:Folder"
   contentTypes="[text/html]"
   enabled="{Boolean}true"
   generatorType="htmlparser"
   order="{Long}10"
   serializerType="htmlwriter"
   transformerTypes="[domainsharding]"
/>

 

Please advise.

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi Manish,

Create a new config with all three trasnsformer & highest order.

transformerTypes="[linkchecker,versioned-clientlibs,akamai-static,domainsharding]"

Thanks,

View solution in original post

1 Reply

Avatar

Correct answer by
Level 9

Hi Manish,

Create a new config with all three trasnsformer & highest order.

transformerTypes="[linkchecker,versioned-clientlibs,akamai-static,domainsharding]"

Thanks,