[TYPO3-core] RFC: Extend TypoScript values
Michael Stucki
michael at typo3.org
Fri Feb 3 13:29:03 CET 2006
This is a CVS patch request.
Problem:
TypoScript properties cannot be changed unless they are completely
redifined.
Example:
lib.mymenu.pidlist
Adding more IDs is not possible without redefining the whole property again:
lib.mymenu.pidlist
The same goes for removing elements:
lib.mymenu.pidlist
Solution:
Introduce special properties that extend existing values.
Example (compare with the above one):
lib.mymenu.pidlist lib.mymenu.pidlist._addToList lib.mymenu.pidlist._remoeFromList
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
Documentation is still missing but I am not yet sure where it needs to be
added (will check with Kasper).
Comments welcome.
Regards, michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeProperties.diff
Type: text/x-diff
Size: 3239 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060203/c717b9da/attachment.bin
More information about the TYPO3-team-core
mailing list