![]() |
[SOLVED] RELPATH in an vb:if condition
I am trying to detect what the current page is so that I can do some conditional styling by changing the stylesheet classes depending on the result.
I've seen in one of the template files the following if condition: Code:
<vb:if condition="THIS_SCRIPT == 'vbcms' "> I have tried: Code:
<vb:if condition="RELPATH == 'mypath' "> I can output {vb:raw relpath} however I haven't been able to get that to work in an if condition either. How can I detect the current path to be used in an if condition? Thank you, Jay SOLUTION: After just throwing in bits here and there trying to get any result using some form of "relpath" I found this to work: Code:
<vb:if condition="$relpath == 'mypath'"> |
All times are GMT. The time now is 03:10 PM. |
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:
|