• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Access $contentTemplate in template editor

Marcus

Well-known member
#1
To force simple editor in conversations I would like to add this to the editor template (later with a template hook), but in the editor template $contentTemplate is unknown:
Code:
<xen:if is="{$contentTemplate} == 'conversation_view'"><xen:set var="$showWysiwyg"></xen:set></xen:if>
 

Jake Bunce

XenForo moderator
Staff member
#2
That template is rendered separately so you can't access those container params:

XenForo_ViewPublic_Helper_Editor::getEditorTemplate

An addon is required.

I came up with this addon to disable the RTE user preference for the entire conversation controller. I think this will work for you.
 

Attachments