P
P
pavelmosin2019-10-17 16:19:44
1C-Bitrix
pavelmosin, 2019-10-17 16:19:44

Bitrix. bitrix:news output of top-level elements and subsections?

Is such a conclusion even possible?
5da86a2951d7e567944885.jpeg
Url settings:
5da86a2f1f99c996773304.jpeg
The bottom line is that with such settings, the transition to elements that are in the test section is carried out normally, and when you go to elements that are without a section, a list of all news for this url is displayed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-10-17
@pavelmosin

Well, everything is correct. For an element without a section, the url is /news/CODEELEMENT/ - and this is your section page. Since the section most likely does not exist with such a code, all elements are displayed.
What do you want? What should be the logic of work?
Display element? You cannot do this with standard components, since there is no joint uniqueization of section and element codes. So you either need to do directly in /news/index.php the code that will choose which component to connect - complex news or single news.
Or customize a complex component (as I understand it, you use it) of news

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question