Dynamic page type?
This is an open discussion with 2 replies, filed under Troubleshooting.
Search
FrontendPageResolved looks like a good candidate to me, just change $context['page_data']['type']
.
Right, unfortunately it's to early. The output format is controlled via url parameter. Anyway, I'll just skip using contenttypemapping and add the headers myself.
Thanks
Create an account or sign in to comment.
I'm not sure if this was already discussed, but is it possible to dynamically set the page type on a frontend delegate? The only thing that I can figure out is
PageManager::addPageTypesToPage
, but that's not suitable in this particular situation. I need to add the pagetype just before contenttypemapping is setting the content headers.So any ideas are much appreciated.