[TYPO3-core] RFC: Extend TypoScript values

Michael Stucki michael at typo3.org
Fri Feb 3 13:54:14 CET 2006


Hi Dmitry,

> I would prefer += and -= instead of properties (if it is possible, of
> course). Looks better and more natural. For example:

We discussed this as well. The problem is that += and -= are quite limited,
so there is no room to add more operators. As you can see in the example,
we already use four of them.

>> Example (compare with the above one):
>> lib.mymenu.pidlist =0,21,22
>> lib.mymenu.pidlist._addToList =3,24
>> lib.mymenu.pidlist._remoeFromList =0,21
> 
> Btw, what happens if original property is stdWrap? Will add and remove
> be stdWrap to?

The stdWrap will be modified before it is executed. Example:

lib.mymenu.pidlist = 2,3

# Imagine that pidlist would have stdWrap properties (which is not the case
# however):
lib.mymenu.pidlist.wrap = 1,|,4

lib.mymenu.pidlist.wrap._addString = ,5

The result would be that "lib.mymenu.pidlist.wrap" was changed to "1,|,4,5"
and the resulting pidlist would be 1,2,3,4,5.

Quite easy, isn't it? :-)

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/



More information about the TYPO3-team-core mailing list