R
R
Rostislav2017-07-24 12:22:01
1C-Bitrix
Rostislav, 2017-07-24 12:22:01

Why does the html markup of the block change in CMS Bitrix depending on whether the user is authorized or not?

There is a block "similar products". I found the file where the markup of this block is located. Changed as needed. If you enter the admin panel, then the "similar products" block is displayed normally, with the markup from the file. If you exit the admin panel, the old markup is displayed. I have not worked with Bitrix before.
Markup if authorized (new, correct):

<div class="catalog-section__item">
<a class="catalog-section__item-link" href="#">
   <img src="..." alt="..." title="...">
   <span class="catalog-section__item-name">Напольный шкаф Conchiglia</span>
</a>
</div>

Markup if not authorized (old, not correct):
<div class="catalog-section__item">
  <div>
    <a href="..." style="width:120px;height:120px;display:block;border: 1px solid #648DA1;overflow: hidden">
      <img border="0" src="..." width="120" alt="..." title="...">
    </a><br>
    <a href="#">Напольный шкаф Conchiglia</a>
</div>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2017-07-24
@boarworm

It's most likely a cache issue.
Clear the cache (regular and composite).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question