Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
slushpuppeh Posted August 14, 2017 Posted August 14, 2017 Hi, Are there any ips:template documentations? Thanks
newbie LAC Posted August 14, 2017 Posted August 14, 2017 Hello, What do you want to know? <ips:template parameters="$var1, $var2" /> HTML code here {$var1} PHP $var1 = 'Hello'; $var2 = 'Goodbye'; \IPS\Output::i()->output = \IPS\Theme::i()->getTemplate('%group%', '%application%', '%location%')->templateName($var1, $var2);
bfarber Posted August 14, 2017 Posted August 14, 2017 The first line is a special line that denotes the parameters passed in to the template. You can read a little more about it in our designers mode dev documents article here: The rest of the file is simply the template content as you would see in the ACP template editor.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.