P
P
photosho2018-03-16 10:29:36
1C-Bitrix
photosho, 2018-03-16 10:29:36

Why can SEF not work in the "bitrix:news" component?

I connect the "bitrix:news" component to the section, set for it:

'SEF_MODE' => 'Y',
'VARIABLE_ALIASES' => Array(
  'ELEMENT_ID' => 'ELEMENT_ID',
  'SECTION_ID' => 'SECTION_ID'
)

The info block contains the following settings:
URL страницы информационного блока: #SITE_DIR#/page/
URL страницы раздела: #SITE_DIR#/page/
URL страницы детального просмотра: #SITE_DIR#/page/#ELEMENT_ID#/

Links to full versions of materials ("DETAIL_PAGE_URL") are generated correctly, but the same list of materials is displayed on the page of the full version of the material. What could I have overlooked? I even added a rule to urlrewrite:
array(
  "CONDITION" => "#^/page/([0-9]+)/#",
  "RULE" => "ELEMENT_ID=$1",
  "ID" => "bitrix:news",
  "PATH" => "/page/index.php/",
),

Still doesn't want to work. "RewriteEngine" is enabled in .htaccess (standard Bitrix .htacces).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2018-03-16
@photosho

"PATH" => "/page/index.php/",

In general, open the component settings in the visual editor and just save (by saving the page). He will correct the rules in urlrewrite

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question