Start now free!

Forums

Search  Users  Rules 
Close
Login:
Password:
Forgot your password?
Register
Login
 
Pages: 1
Reply
Add menu item
 
Hi,

Is it possible to add a menu item only when viewing the detail page of an product (catalog > element template). I want to add a "back to overview" button.

Thanks,
Ruud
 
Hi,

Try using a PHP expression (in the advanced mode of menu management) as the condition for displaying the menu item.
 
Thank you,

Can you help me with this one? The detail page for a product is this:

#SITE_DIR#/#IBLOCK_CODE#/#SECTION_CODE#/#CODE#/

Only when this page is visible I want to ad a menu item

What expression should I use?
 
I am not sure whether analysis of the detailed page path is the best and easiest way.
It will probably be better to set some variable (like a flag) on a component or its template that displays product details, and check that variable's value in the display condition for the menu item.
Pages: 1
Reply
Users browsing this topic
Reply form
Enter your Post*
More
Files:
Drag and drop one or more files here
or select a file from your computer
Files:
Upload files
 

Bitrix Partner Network has more than 7,000 IT professionals who put their trust in our technologies and assist customers with installation and maintenance. All Bitrix Partners enjoy lucrative discounts on our products and services. Join our Partner Network now! Submitting a Bitrix Partner application is very easy and quick!
Partner Program
Free Online Training
Subscribe to Bitrix News