J
J
Jupiter Max2018-11-26 08:05:35
1C-Bitrix
Jupiter Max, 2018-11-26 08:05:35

How to configure the output of the search result for one product in Bitrix?

Hello.
Please help. On the site I display the catalog component with the template I need on the desired page. This is done so that for certain users a different template is shown on a page that only they see. The catalog output parameters specify the required pages for outputting the result.
Added a search component search.title to the page. The problem is that if you follow the link of the selected product, it redirects to the general catalog page, and not to the one with restricted access.
How to set up so that the search does not redirect to the general directory, namely to the one with limited access?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2018-11-26
@vardoLP

The search components display the URL from the IB settings.
The $arResult of the search.title template contains ITEM_ID, which is the ID of the IB element.
Make a condition for the desired user group and, according to this condition, generate a URL using a different template

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question