I'm looking for a way to alter links on a Plone site. Basically if a link matches a specific pattern it should be replaced with something else.
I see my options as:
- Diazo - just do some fancy footwork with XSLT
- Intercept some kind of traversal event
I'm especially interested in ideas related to the third option because I don't want to be tied to my theme.
If you want to do this server side I would suggest considering the implementation of a dedicated portal transform.
I think you can take some inspiration from:
I'd be inclined to hacking some JS
But a portal transform or this https://plone.org/products/collective.routes would be more politically correct
Whats the source of the links?
These would be from content or the navigation bar. I can see that if it were in the theme that might be a problem for a transform.