We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

syntax question on constant | Forum

dave Leader
dave Oct 11 '13

I am assuming that component is a constant

 

{component class="BASE_CMP_Sidebar"}

 

so i should be able to do this right

 

{if component}

 {component class="BASE_CMP_Sidebar"}

 {/if}

 

would that be legal syntax ?

Daisy Team
Daisy Oct 17 '13
This is not a good way to check the smarty function - the code you've provided will probably cause the error. Could you please specify what exactly you are trying to do and we will provide you with the directions.
dave Leader
dave Oct 17 '13
hi daisy, all i was doing at the time was adding some if's to the dndindex and the general index html files in order to isolate something i was looking for.  I did set it back but i was just curious about that is all...