简体   繁体   中英

How to show all news in one page with detail view in typo3?

I followed this tutorial to create news page in typo3. But i want to show all news in side bar and detail view in same page. When i try create plugin element with detail view on same page, it show error

Reason: No news entry found.

页面截图

I have pointed to same page for

PageId for single news display

for list view(Without overloadin detail view) .

How to i do that and how to enable next page and prev page if news contents exceeds 10?

You should use the news documentation for this case.
List and detail on the same page using TypoScript . Important part is the condition.

[globalVar = GP:tx_news_pi1|news > 0]
  page.10.marks.content < lib.news_detail
[else]
  page.10.marks.content < lib.news_list
[end]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM