S
S
Spider84112019-03-12 00:04:54
1C-Bitrix
Spider8411, 2019-03-12 00:04:54

The structure of sections and pages based on the infoblock - how to apply the template?

Hello.
I created an infoblock and, based on it, a structure of sections with elements. I figured out their urls and they will be available to me at the url of the form - www.mysite.ru/razdel1/element1
Now I want to apply a separate template to these sections and elements.
How to do it right?
If I had a constant part in the URL for this infoblock - for example - www.mysite.ru/catalog/razdel1/element1 - I would just check the regular part for a match with the constant part of the catalog and that's it.
What would be the best thing to do in my case? Will I be able to check (in the site settings where the template is selected according to the conditions) for the presence of a section in the structure of my infoblock by the razdel identifier or are there better solutions?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question