[TYPO3-news] [TYPO3-project-news] News Page with List and Detail on one page

Frans Saris franssaris at gmail.com
Sat Aug 1 09:11:20 CEST 2015


Hi Ralf,

Try <f:cObject typoscriptObjectPath="lib.field_news" />

And

[globalVar = GP:tx_news_pi1|news > 0]
         lib.field_news < lib.news_detail
[else]
        lib.field_news < lib.news_list
[end]

Info about typoscript integration:
https://github.com/georgringer/news-documentation/blob/master/Documentation/AdministratorManual/BestPractice/IntegrationWithTypoScript/Index.rst

You could also just add a news plugin to the page and do not select the
action to show but do that in typoscript with

http://docs.typo3.org/typo3cms/extensions/news/latest/AdministratorManual/BestPractice/Realurl/Index.html#removing-controller-and-action-arguments-from-url-ii

Gr. Frans

Op za 1 aug. 2015 00:45 schreef Ralf Heydenreich <rheydenr at justmail.de>:

> 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.
> _______________________________________________
> TYPO3-project-news mailing list
> TYPO3-project-news at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-news
>


More information about the TYPO3-project-news mailing list