[TYPO3-ttnews] Make ext:news detail view show most recent item when no id given

Philipp Gampe philipp.gampe at typo3.org
Sun Sep 2 23:06:41 CEST 2012


Hi Loek,

Loek Hilgersom wrote:

>>> [PIDinRootline = 11] && [globalVar = GP:tx_news_pi1|news=]
>>
>> That is the way to go.
> 
> Thanks for reacting, but then what? At that point I know that no news_id
> is provided, but how do I get tx_news to show the latest item in detail
> view? That's the part I still don't know.

http://forge.typo3.org/projects/extension-
news/wiki/Integrate_news_with_TypoScript

Just set the limit to 1 ;)

The latest news is a normal latest list limited to one new shown ... that is 
all the magic :)

Cheers
-- 
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
Documentation – linkvalidator
TYPO3 .... inspiring people to share!



More information about the TYPO3-project-tt-news mailing list