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. |
Re: How to check current page.
In what twig file are you going to add this code?
|
Re: How to check current page.
@Pnk,
try using {% if this.getURL() == "about.html" %} |
All times are GMT -8. The time now is 09:07 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.