T
T
TechNOIR2018-06-23 17:15:35
1C-Bitrix
TechNOIR, 2018-06-23 17:15:35

Bitrix. How to add an item to the catalog menu with a personal link?

Good afternoon!
All items in the menu have a link like /catalog/character_code
But for one of the items I need an original link, let 's say http://mysite.ru/some_section
How would I implement this without changing links to other sections of the catalog?
thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Burlaka, 2018-06-24
@AlexeyGfi

1. We start a custom property for the section.
In it (optional, based on convenience) we store:
• character code that replaces everything after /catalog/ ;
• full url that will be published instead of url /catalog/ character_code / ;
• query parameters, such as ?sort=za&avail=no or anchor for landing #buildings .
2. In the menu output template, we check: if the custom property is filled, we modify the URL published in the menu item.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question