Transformers pipeline content

Augusto Leao May 14, 2013

I'd like to intercept content before it is displayed, change some keywords and finally render it. Basicly its just to tranform the content before its printed. I have been looking for any sample code, or documentation about it, however I can not find any information on this at all.

Someone point me to the right place? Has anyone coded anything like this?

The only think I found is that confluence provide transformers pipeline but there is nothing about it.

Thanks,

2 answers

0 votes
Don Willis
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 30, 2013

https://answers.atlassian.com/questions/31676/confluence-4-transformer-pipeline provides a little detail on the transformer pipeline.

0 votes
Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2013

I can think of a way to do this by writing a macro and adding the macro to your page decorator. For example, rather than just having a line like:

$body

In your decorator, you could pass $body to a macro and print the results. The macro would do the transformation. This is just off the top of my head. There are probably much better ways to do it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events