Search

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.

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details