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

Adding custom Controls to InlineMod

Discussion in 'XenForo Development Discussions' started by Fuhrmann, Nov 13, 2011.

  1. Fuhrmann

    Fuhrmann Well-Known Member

    Is there a way to add custom controls in the Inline mod controls? Without template edits.

    I have not see a hook in there, or a possible use of a code event listener template_post_render, since the template of Inline mod is used with the <xen:include> tag.

    5.png
     
  2. Fuhrmann

    Fuhrmann Well-Known Member

    Ok, figured out.

    Just have to use the code event listener template_post_render in the template forum_view (and all the others that use the inline mod) and replace the "</optgroup>" to the template with all the custom controlls.

    The value of the option:

    Code:
    <option value="Test">Test</option>
    Will be the same name of the action. This will be actionTest. It works.

    I just think that can be a easy way (hooks?) to insert custom controls.
     
    Earl, mgl and ManOnDaMoon like this.

Share This Page