![]() |
conditional help
Is it possible to write a conditional statement in a template based on which page the template is being viewed in?
e.g. IF pageviewed = 'main index' THEN 'do this' ELSE 'do that' All help appreciated. |
yes, you can use the THIS_SCRIPT constant which is set at the top of all the main files.
|
Quote:
<if condition="THIS_SCRIPT == index"> code for the forumhome/index <else /> Every other page </if> |
Thanks for your help, it worked like a charm ;)
|
All times are GMT. The time now is 08:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|