I know this is a simple question, ..but i have spent 5 hours over 2 days looking for the answer and now i feel i need to ask.
I need to reference a template variable i have created for a specific document in a snippet.
The TV is called [*port_format*] ...and all i want to do is check it’s length in PHP:
if(strlen('[*port_format*]')>2){ echo "<p><span class='port_label'>FORMAT</span><br />[*port_format*]<p />\n";}
but i know i cannot refer to the TV like this, ..
Please help, i know i need to use getTemplateVar, ..but i cannot work out how it works from the documentation.
Thank yu