A
A
Arseny Sokolov2016-12-15 12:31:37
1C-Bitrix
Arseny Sokolov, 2016-12-15 12:31:37

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

1 answer(s)
O
Oleg Maksimenko, 2016-12-15
@ArsenBespalov

See an example here https://www.olegpro.ru/post/1s_bitriks_geozavisimy... similar task

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question