[TYPO3-core] RFC: Extend TypoScript values
Stanislas Rolland
stanislas.rolland at fructifor.ca
Sat Feb 4 17:17:19 CET 2006
Michael Stucki a écrit :
> This is a CVS patch request.
>
> Problem:
> TypoScript properties cannot be changed unless they are completely
> redifined.
>
> Example:
> lib.mymenu.pidlist =0,21,22
>
> Adding more IDs is not possible without redefining the whole property again:
> lib.mymenu.pidlist =0,21,22,23,24
>
> The same goes for removing elements:
> lib.mymenu.pidlist =2,23,24
>
>
> Solution:
> Introduce special properties that extend existing values.
>
> Example (compare with the above one):
> lib.mymenu.pidlist =0,21,22
> lib.mymenu.pidlist._addToList =3,24
> lib.mymenu.pidlist._removeFromList =0,21
>
>
> Comments:
> - The feature was written by Ingmar and me during the snowboard tour.
> - We have added four methods (addString, removeString, addToList,
> removeFromList) but more should be easy to implement.
> - We would like to add some kind of a hook to add more methods dynamically
> (but that follows later).
> - It works fine in regular TypoScript setup as well as in Page TypoScript
>
Sometimes the current list value would be '*' (meaning all). Perhaps, in
such case, _addToList should be ignored?
Otherwise +1.
Stanislas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060204/9d9aa36c/attachment.htm
More information about the TYPO3-team-core
mailing list