1. 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

Discussion in 'XenForo Development Discussions' started by Marcus, Oct 26, 2011.

  1. Marcus

    Marcus Well-Known Member

    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>
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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.
     

    Attached Files:

    Eagle likes this.

Share This Page