P
P
photosho2018-09-06 14:56:43
1C-Bitrix
photosho, 2018-09-06 14:56:43

Where is the comment template set in the "bitrix:catalog.comments" component?

Where is the comment template set in the "bitrix:catalog.comments" component? Editing the nested template "adapt" ("blog.post.comment") does nothing, the comment template does not change.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
photosho, 2018-09-06
@photosho

The problem was non-standard, maybe someone will need its description. The site is changing the template, and the old template is set to the main template, while the new template is set to a specific page with a list of comments.
Inside "catalog.comments/template/ajax.php" there are lines that include a component that loads comments via an ajax request:

$APPLICATION->IncludeComponent(
      'bitrix:catalog.comments',
      '',
      $commParams,
      null,
      array('HIDE_ICONS' => 'Y')
    );

The template name is not specified here. I tried to specify by passing the component template with which I connect it, but Bitrix displays the message: "Cannot find template 'name' of page ''" - this empty "page" parameter confused me. Suspicions turned out to be correct: apparently, if the "page" parameter (or whatever it is) is not set, then the component template is searched for in the folder with the default site template.
If someone in the comments can tell me how to avoid this without setting a new default template, I would be very grateful.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question