D
D
DieHippieDie2019-09-29 23:25:52
1C-Bitrix
DieHippieDie, 2019-09-29 23:25:52

Why does Bitrix display a list of news instead of news?

The site section is a simple news feed:
<?$APPLICATION->IncludeComponent(
"bitrix:news.list",
".default",
I didn't touch the component code, I didn't touch the component call code, it worked only with templates. As a result, only this section, the list of news is displayed normally, but when you click on the news, the list of news opens again.What could be the problem
?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Georgy Baruchyan, 2019-09-30
@DieHippieDie

It seems to me that the problem here is not in news.list, but in the component that is responsible for processing the details. Look in urlrewrite for which file handles the news details and see the component included in it

S
Stanislav Lavrentev, 2019-09-30
@Lavrentev

And if you just go to the news by url, does it open? I could be wrong, I hope I'll be corrected, but news.list only lists the news, not the detailed news pages. This is done by the bitrix:news complex component, you can place it on this page, it will already contain the news.list component, as well as news.detail, and the pages themselves will be formed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question