[TYPO3-dev] Extensions with more TS support

JoH asenau info at cybercraft.de
Sat Oct 31 10:33:13 CET 2009


> 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?

At first glance it looks interesting, but at second I have to admit that I
don't get the magic.
"There will be a marker" - where will it be?
Usually markers are in the template, but I don't see a template here.
So why are you using markers and how do you use them to manipulate the
output?
In my example the markers are triggered within the TEMPLATE object, so do
you think this could be working together?
What will be a good usecase?

Just curious

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com






More information about the TYPO3-dev mailing list