Q
Q
qlr2015-04-27 14:41:51
CMS
qlr, 2015-04-27 14:41:51

Bitrix, changing the catalog.section.list component?

There is a template that is used on the site, available at url bitrix/templates/template_name
You need to change the component code catalog.section.list
Accordingly, I go bitrix/templates/template_name/components/bitrix/catalog/.default/bitrix/catalog.section.list/ .default/template.php
Changing the template does not affect, although the code on the site is identical and I have not found such code anywhere else.
Changing bitrix/templates/template_name/components/bitrix/catalog/.default/section.php affects the site.
I also tried to change the component template in bitrix/components/bitrix/catalog.section.list and all templates bitrix/components/bitrix/catalog/templates - I deleted all the templates and nothing changes.
Where is this code then?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Q
qlr, 2015-04-27
@qlr

All I had to do was clear the cache...

P
pkrymskaya, 2015-04-27
@pkrymskaya

Checking which specific component template is used is not so problematic.
The scheme is this:

  • Login as admin
  • Open the desired list page (i.e. where the catalog.section.list component is used)
  • Turn on edit mode
  • We are looking for the borders of the component, click on the drop-down list of additional settings
  • And there already in the context menu we are looking for the line "Edit component template catalog.section.list"
  • After that, the component editing window opens, and the window title will contain the path to the desired file
  • We go to FTP along that path
  • Editing the file
PS: try not to edit configuration files through the admin panel.

D
Dmitry, 2015-07-14
@chesterzoom

And there already in the context menu we are looking for the line "Edit component template catalog.section.list"

and most importantly, do not forget to make a copy of the template, specifying the desired path for it. And then edit it however you like.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question