Our site www.viart.com is operated by latest Viart Shop 5.8.28 with default Clear design
Topic Information
DJ (Guest)
DJ (Guest)
Hello,
 
I am trying to use a conditional statement to check whether or not to display HTML within a certain sub function.
 
Example (Unedited):
 
<!-- begin catalog_sub -->
 
<li><a class="smallText" href="{list_url}">{catalog_sub_name}</a></li>
 
<!-- end catalog_sub -->
 
 
Example (What I'd like to do):
 
<!-- begin catalog_sub -->
<!-- if catalog_sub_name -->
 
<li><a class="smallText" href="{list_url}">{catalog_sub_name}</a></li>
 
<!-- endif -->
<!-- end catalog_sub -->
 
This will check whether or not the catalog_sub_name variable is null or defined... if defined, show the HTML.. vise versa.
 
I've used conditional statements in phpBB, not sure if you support them.
 
Thanks,
DJ
 
wendy (Guest)
wendy (Guest)
Did you ever find the answer to this? I'm trying to do the same thing (show a menu if it's not index.php)