N
N
Nik17122017-01-25 13:39:43
1C-Bitrix
Nik1712, 2017-01-25 13:39:43

How to set a custom class for the body of a certain page type in Bitrix?

How to make a unique class for the body pages that display a product and use, say, the catalog.elemet component?
url while they can be very different ( nyphalim.ru/2011/10/07/1 this option is not suitable)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Korolev, 2017-01-25
@workDNK

Read about deferred functions, they should help you.
dev.1c-bitrix.ru/learning/course/?COURSE_ID=43&LES...
CMain::SetPageProperty
CMain::ShowProperty
In the component_epilog.php file of the required template for the catalog.element, set the property, and in the header.php of the template add the output " delayed" value.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question