PDA

View Full Version : conditional to determine the name of the page


amykhar
05-20-2004, 01:12 AM
Does anybody know if there's a conditional check I can do in the navbar to see what page is being displayed?

I want to run one ad banner under the navbar on the forumhome page, but a different banner on all other pages. Could easily hack it, but would rather use a conditional if possible.

Amy

sabret00the
05-20-2004, 08:13 AM
you could use the THIS_SCRIPT thingymajig

so


<if condition="THIS_SCRIPT == index">display this banner<else />display the other banners</if>

amykhar
05-20-2004, 06:43 PM
Thank you :) I was working on the templates at work and couldn't access the source code.

sabret00the
05-20-2004, 06:45 PM
no problemo, grateful i could help :)