Gossamer Forum
Home : Products : Gossamer Links : Discussions :

An "if" function...

Quote Reply
An "if" function...
Hi



I do not know if this is possible or not...

But is it possible to pass something like

<%if templete=add.html%> whatever text <%endif%>?

what i need to spceify a different instruction and rules contents per templete and theye will all be controlled from one file.. kinda like:

<%if templete=add.html%>

whatever

<%else%>

<%if templete=modify.html%>

whatever2

......

<%endif%>



any suggestions?
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] An "if" function... In reply to
Hi,

You can use <%if template eq 'add.html'%> if you have a variable called template on the page. Use <%GT::Template::dump%> to see what variables are avaiable.

Cheers,

Alex
--
Gossamer Threads Inc.