Answer the question
In order to leave comments, you need to log in
How to display the form only to authorized users in catalog.element and news.list?
Hello. There is a form that should be visible only to authorized users. I found in some article that you can bypass caching in this way:
<div id="add-rev">
<?$frame = $this->createFrame("add-rev", false)->begin("");?>
<?if($USER->IsAuthorized()):?>
// код формы
<?endif;?>
<?$frame->end();?>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question