Answer the question
In order to leave comments, you need to log in
How to enable dynamic content in 1C-Bitrix?
I can’t understand anything, I’ve already tried everything and read everything I found, how to enable dynamic content in the bitrix:catalog.element component template , which is called in turn from the bitrix:catalog complex component ?
Such code does not work correctly, it still gives the cache, and not the dynamic part.
$frame = $this->createFrame()->begin();
if ($USER->IsAuthorized) {
// Всегда будет выдаваться код в этой области, потому что из-под админа будет создан при первом хите кэш.
} else {
// Никогда не будет срабатывать код из этого условия.
}
$frame->end();
Answer the question
In order to leave comments, you need to log in
See an example here https://www.olegpro.ru/post/1s_bitriks_geozavisimy... similar task
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question