How to make multiple re-writers work using ACS Common? | Community
Skip to main content
jainmanish_it
New Participant
March 29, 2017
Solved

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

  • March 29, 2017
  • 1 reply
  • 988 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by MC_Stuff

Hi Manish,

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

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

Thanks,

1 reply

MC_Stuff
MC_StuffAccepted solution
New Participant
March 30, 2017

Hi Manish,

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

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

Thanks,