PDA

View Full Version : Condition to load on a template


Abhik
02-10-2012, 04:02 PM
Amm..
What is the template conditional tag to load something only on custom template.

For example,

<vb:if condition="$template==mytemplate>
<ul class="myclass">
......
</ul>
</vb:else>
<ul class="defaultclass">
......
</ul>
</vb:if>What's that condition, please?

is this plugin code correct?
if condition ($template==mytemplate){
mycode
} else {
othercode
}

kh99
02-10-2012, 04:37 PM
I don't understand what you're trying to do. Since you know which template you put the code in, why would you need an 'if' for which template the code is in?

Abhik
02-10-2012, 05:56 PM
I was actually trying to use a different css class..
Yeah, you are right!! Just lost my mind.

The actual problem is here (https://vborg.vbsupport.ru/showthread.php?t=278365).