[TYPO3-news] [TYPO3-project-news] News Page with List and Detail on one page
Ralf Heydenreich
rheydenr at justmail.de
Sat Aug 1 00:41:59 CEST 2015
Hi all,
I want to create a news page which contains a list of all news with
their details (the news are short). Therefore I've adapted my list view
template:
<f:cObject typoscriptObjectPath="lib.news" />
and put this into root template setup:
lib.news = USER
lib.news {
userFunc = tx_extbase_core_bootstrap->run
pluginName = Pi1
extensionName = News
controller = News
settings =< plugin.tx_news.settings
persistence =< plugin.tx_news.persistence
view =< plugin.tx_news.view
}
lib.news_list< lib.news
lib.news_list {
action = list
switchableControllerActions.News.1 = list
}
lib.news_detail < lib.news
lib.news_detail {
action = detail
switchableControllerActions.News.1 = detail
}
[globalVar = GP:tx_news_pi1|news > 0]
lib.field_news_single < lib.news_detail
[else]
lib.field_news_list < lib.news_list
[end]
But the result is a list with header and teaser and no details. What's
wrong?
The dummy image is also displayed, although I've set
plugin.tx_news.settings.displayDummyIfNoMedia = 0
in the constants sections of my root template.
Thanks in advance,
Ralf.
More information about the TYPO3-project-news
mailing list