Filters
Macros actually require a marker to be inserted in the page for the content to be inserted, so there may be some cases where you actually want to filter the output and perform transformations in real time. This can be done through the usage of filters. For example, it might be useful to use a filter to transform all email addresses detected and replace them with an obfuscated version that will avoid detection by spam web spiders. Jahia provides different filters out of the box, but you may of course add your own. Here is a non exhaustive list:
-
Portlet process action filter (for portlet support)
-
Static asset filter (injects Javascript and CSS in the HTML page header)
-
Metrics logging filter (gathers statistics on object views)
-
User agent dispatcher (for mobile rendering)
-
HTML cache
-
Email obfuscator
-
And a lot more…
As you can see, some filters are quite powerful, while others may be very specific to a certain usage. Filters are an important part of the internal processing of Jahia.

