B
B
Barders2022-03-22 19:21:38
1C-Bitrix
Barders, 2022-03-22 19:21:38

How to set up the CNC on the NEWS infoblock?

There is an infoblock, there is news, it is written in the infoblock:
6239f670e2261377943877.png

The output of the bitrix.news component says:
6239f6f908ba5245967538.png

There is a problem, there is an element with the symbolic code seryj_klyuch , it is in the root, but when you click on the link: site/catalog/seryj_klyuch/ gives a 404 error

if I am this I shove the key into the section, it still gives out 404.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
J
Julia Bedrosova, 2022-03-22
@Bedrosova

Try turning off CNC support in the component, and then turning it back on.

N
no_one_safe, 2022-03-23
@no_one_safe

Bitrix classic CNC does not work for root elements. An element must always be in a section.

B
Barders, 2022-03-23
@Barders

Well, it even lies in the section why does the site/#ELEMENT_CODE#/ not work when setting up the CNC?

T
tgarl, 2022-03-23
@tgarl

you can change the CNC for the element detail card to eg site/catalog/detail/#ELEMENT_CODE#/ and disable strict section checking.
or try switching to bitrix:catalog instead of bitrix:news

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question