Force rendering in the default theme

Created on 4 May 2017, almost 8 years ago
Updated 23 May 2024, 11 months ago

When using a separate admin theme, TOC filter may render its output using the admin theme, rather than the default theme, depending on where the node was edited from. For example, if you view the node and click the "Edit" tab, the filter output will use the default theme. If you edit the node via /admin/content it will use the admin theme. This also applies if you manually head to /node/1/edit?destination=admin/content. This becomes problematic if your default theme overrides theme_toc_filter(). The default output from that function is cached in the node body, rather than rendering the output from the overridden theme function.

Is it possible to force TOC Filter to render via a specific theme? Similar to how modules like mimemail handle this. I guess the alternative would be to disabled caching on the text filter, but that is less than ideal.

💬 Support request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇦🇺Australia mstrelan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024