gtonti Posted June 18, 2012 Share Posted June 18, 2012 I have posted the same question in the italian forum, but it seems there is no people using this one. So. In PHP I mau use $_SERVER['PHP_SELF'] to detect the current page. How can I realize this type of control in TPL linguage? {if (analog to $_SERVER['PHP_SELF']=="index")} do something {/if} Any suggestion? PS: sorry for my poor english... Link to comment Share on other sites More sharing options...
Mike Kranzler Posted June 18, 2012 Share Posted June 18, 2012 Moved to "Development" Link to comment Share on other sites More sharing options...
jhnstcks Posted June 18, 2012 Share Posted June 18, 2012 Try {if $page_name == index} add your code here {/if} 1 Link to comment Share on other sites More sharing options...
gtonti Posted June 19, 2012 Author Share Posted June 19, 2012 Thankyou. Perfect solution. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now