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

Admin Templates "slot:" Placeholder

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

Jeremy

Well-known member
#2
This were meant for string replaces (find it, replace it with itself + more). They were designed for the template hook system.