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

Admin Templates "slot:" Placeholder

Discussion in 'XenForo Development Discussions' started by r1pe, Jun 24, 2013.

  1. r1pe

    r1pe Member

    Hello,

    I have a question regarding the "slot" placeholders in many admin templates. Is there a recommended way to use these placeholders. Sure I can create a template hook with a str_replace function and replace the "slot" comment with my additional content but is there some cleaner way to do this.

    For everyone who doesn't know what I mean with "slot" placeholders, I mean the comment "<!-- slot: after_basic_information -->" in the "admin_forum_edit_panes" template for example.
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    This were meant for string replaces (find it, replace it with itself + more). They were designed for the template hook system.
     
    r1pe likes this.

Share This Page