PDA

View Full Version : How do I add my own template tags?


echamberlain
02-24-2007, 11:53 PM
I'm working on a mod and I need to create my own template tag, something like:

<mytag param1="stuff" param2="variablestuff"/>

Are there any tutorials explaining the best way to parse the templates and process this tag with my plugins?

CyberAlien
02-25-2007, 06:38 AM
There is a hook "template_compile" you can use. For examples of code look in process_template_conditionals() and process_template_phrases() in includes/adminfunctions_template.php