Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

How to check current page.

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-23-2017, 04:00 AM
 
Pnk Pnk is offline
    
Join Date: Nov 2017
Posts: 1
 

Default 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
Reply With Quote
  #2  
Old 11-26-2017, 10:38 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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
Reply With Quote
  #3  
Old 11-29-2017, 05:23 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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!
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:29 AM.

   

 
X-Cart forums © 2001-2020