Enonic version: 6.5.4
OS: Mac and linux
So If I want to pass something from a page controller to a response filter I can do this by adding headers
https://discuss-3.enonic.com/t/xp-help-creating-files/430/2
Keeping in mind:
Interestingly it seems Enonic XP has added some custom fields:
pageContributions, postProcess, applyFilters
http://xp.readthedocs.io/en/stable/developer/ssjs/http-response.html
When I try to add my own, they are stripped away before reaching the responsefilter but I guess thats by design.
Does server-side data really belong in the HTTP response?
Or should controller perhaps return more than just the http response object?
I guess I should stick to using http headers for now, and simply strip them in the filter, so the end user never sees themā¦