R.Shredder Posted July 9, 2019 Share Posted July 9, 2019 (edited) Hello there. I'm trying to set a link in my megamenu according a specific id (in PS 1.7) : something like {if $link->div.id="pt_menu3"}<a href="page.php">{/if} but i can't figure the exact syntax. I need to check if the div id containing my link is pt_menu3... Any help would be nice ! Edited July 9, 2019 by R.Shredder More infos ! (see edit history) Link to comment Share on other sites More sharing options...
Chill_user Posted July 16, 2019 Share Posted July 16, 2019 (edited) Didn't understand what you like to do, what you like to show the block of megamenu only at specific pages, the correct syntax is: {if $urls.current_url == your_desired_url } <div> some context here </div> {/if} You can check this: global variables list Edited July 16, 2019 by Amantha Bill (see edit history) 1 Link to comment Share on other sites More sharing options...
R.Shredder Posted July 16, 2019 Author Share Posted July 16, 2019 That should totally do the job. Thanks a lot ! 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