Jump to content

ips:template documentation?


slushpuppeh

Recommended Posts

Posted

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);

 

Posted

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.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...