[TYPO3-dev] Extensions with more TS support

Georg Ringer mail-spam at ringerge.org
Sat Oct 31 10:17:04 CET 2009


JoH asenau schrieb:
> If more people would use TypoScript in a similar way instead of abusing it
> as a container for a set of parameters for their PHP functions, many
> extensions would be much more flexible, usable and thus powerful.

yeah! +1

I know a bit offtopic but it would be cool to find one way which is as 
often used as possible in every extension.

I am using a function like this http://pastebin.com/f677b473e to prefill 
markers in a view. There are 2 options

1.) Language Markers. From a list of keys (given by TS) language Markers 
are rendered. Just add another key in the TS (e.g. 
plugin.tx_fo_pi1.listView.ll = key1,key2,key3) and you will get a marker 
  like ###LL_KEY1###, ###LL_KEY2###, ...

2.) Possibility to generate generic keys by just using TS.
TS could be like
plugin.tx_fo_pi1.listView.generic.abc = TEXT
plugin.tx_fo_pi1.listView.generic.abc.value = def

and there will be a marker ###ABC###

A call to this function would be in the listview and would look like
$markerArray = $this->prefillMarker($markerArray, 
$this->conf['list.']['ll'], $this->conf['list.']['generic.']);

What you think?

Georg




More information about the TYPO3-dev mailing list