


Hi,
I am trying to limit sling rewriter (see http://sling.apache.org/site/output-rewriting-pipelines-orgapacheslingrewriter.html) to some components. There is parameter 'resourceTypes' but it behaves strange. For example, if I set
resourceTypes="[.../components/navoverview]" then the rewriter works for all components, if I set
resourceTypes="[pathToAnyOtherComponent]" then the rewriter does not work for any component,
if I remove including of navoverview component from the page, then the rewriter works only when I set resourceTypes="[pathToSpecificComponent2]" and it works for all components.
I am using CQ 5.4. Did you worked with the functionality and can help with the issue?
Kind regards!
Views
Replies
Total Likes
The requirement is to limit the functionality which was implemented by link rewriter to exclude some components. I will be grateful for any help.
Views
Replies
Total Likes
I am looking to see if this was a bug with CQ 5.4. According to the docs:
You should be able to specify a multi value string of components for which the pipeline is applicable.
Views
Replies
Sign in to like this content
Total Likes
Well i hope yes rewriting is good for all components
Views
Replies
Sign in to like this content
Total Likes
Hi
Why do you want to restrict the link rewriter to only rewrite some components? By the way, I guess, that the resourcetype parameter does only work for the "page components", as IIRC the rewriter is not invoked onto single components, but only to the output as a whole.
Jörg
Views
Replies
Sign in to like this content
Total Likes
If you annotate links with the attribute "x-cq-linkchecker=skip", this link is not checked and not rewritten.
For example:
"<a href="https://forums.adobe.com/content/does/not/exist.html" x-cq-linkchecker="skip">Dead linnk</a>
HTH,
Jörg
Views
Replies
Sign in to like this content
Total Likes
You can implement your custom rewriter using example here http://www.wemblog.com/2013/06/how-to-avoid-caching-of-static-files.html
Yogesh
Views
Replies
Sign in to like this content
Total Likes
Jörg Hoh wrote...
If you annotate links with the attribute "x-cq-linkchecker=skip", this link is not checked and not rewritten.
For example:
"<a href="https://forums.adobe.com/content/does/not/exist.html" x-cq-linkchecker="skip">Dead linnk</a>
I second this approach.
/Ove
Views
Replies
Sign in to like this content
Total Likes