[TYPO3-ttnews] tx_news / fluid: tag name in headline (filtered list view)

Georg Ringer typo3 at ringerge.org
Thu Jul 11 15:58:16 CEST 2013


Hi Heinrich,

Am 11.07.2013 15:40, schrieb Heinrich Morgenthau:
> after using tt_news for quite some time I'm diving into tx_news. It
> looks like a great, powerful extension, 

great, thx!

> but since I don't know fluid
> (yet), it's quite hard for me to configure.

this will change quite fast and as fluid is everywhere the same, you can
use your knowledge on so many other places.

> But how can I create a headline in this list view with the tag name in
> it, a la "<h1>All articles tagged 'example':</h1>"?

Basically for checking out which variables you can use, go to (again,
this is the same for every extbase extension):

=> NewsController > ListAction >

You will see
----
		$this->view->assignMultiple(array(
			'news' => $newsRecords,
			'overwriteDemand' => $overwriteDemand,
			'demand' => $demand,
		));
----

So you can use {news}, {overwriteDemand} and {demand}.

What does that mean for you:
1) Yes there is nothing like "{tags}" which you could use. Sorry, wanna
open an issue at forge?
2) you can still use {overwriteDemand.tags} in a custom VH to make the
query there. this would be the fastest way I guess
3) you can use an additional <f:for each="{news}" as="item"> => output
{item.tags}.

Hope that helps?

Georg


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