Fixed Controllers do not set contentKey

Kirby

Well-known member
Affected version
2.2.12
\XF\Mvc\Reply\AbstractReply has a nice method setContentKey, the set content key does get passed through by default to PAGE_CONTAINER

This could be an easy approach to identify the content (in template conditionals, etc.) - but unfortunately only XF\Pub\Controller\Thread does actually set this which does make it much less useful as it is empty (for everyting except threads).

Could this be changed so controllers like
  • XF\Pub\Controller\Category
  • XF\Pub\Controller\Conversation
  • XF\Pub\Controller\Forum
  • XF\Pub\Controller\Help
  • XF\Pub\Controller\Page
  • XF\Pub\Controller\SearchForum
  • XF\Pub\Controller\Tag
  • XFMG\Pub\Controller\Album
  • XFMG\Pub\Controller\Category
  • XFMG\Pub\Controller\Media
  • XFRM\Pub\Controller\Category
  • XFRM\Pub\Controller\ResourceItem
do actually set this?
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.13).

Change log:
More consistently set content key across different content types
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom