| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
How to check current page. | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
How to check current page.
Hi
I like to check page about.html in twig file for put some custom code in about.html page. I know {% if this.getTarget() == "main" %} Using check Home page. But i like to check about.html page. How i can check it about.html page created from admin. Please help me.
__________________
Nk |
|||||||
#2
|
|||||||||
|
|||||||||
Re: How to check current page.
In what twig file are you going to add this code?
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: How to check current page.
@Pnk,
try using {% if this.getURL() == "about.html" %}
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|