[TYPO3-dev] Fully Blown StdWrap - Check it out!
JoH
info at cybercraft.de
Wed Mar 15 20:54:01 CET 2006
I talked about it with Bernhard Kraft at the snowboard tour after a long and
heavy cocktail binge.
The idea is to improve stdWrap functions by using real functions for each
stdWrap function and calling them directly with a foreach loop over $conf.
This one is the even more improved version that sends each function call
recursively to the fullStdWrap function making the following things
possible:
page.20 = TEXT
page.20 {
##########################
### Enable fullStdWrap ###
##########################
fullStdWrap = 1
#############################
### Call cObject as usual ###
#############################
cObject = COA
cObject {
10 = TEXT
10.field = pid
10.wrap = whatever|
}
##################################################
### Use a dataWrap made out of a cObject COA ###
### which is not possible with default stdWrap ###
##################################################
dataWrap.cObject = COA
dataWrap.cObject {
10 = TEXT
10.value = {field:uid}
20 = TEXT
20.value = +1/3
}
################################################
### Use prioriCalc made out of a cObject COA ###
### with TEXT and if comparison inside ###
################################################
prioriCalc.cObject = COA
prioriCalc.cObject {
10 = TEXT
10.value = intval
10.if.isTrue.field = onlyInt
20 = TEXT
20.value = 1
20.if.isFalse.field = onlyInt
}
}
http://typo3.org/extensions/repository/search/fullstdwrap/0.1.0/
check it out and tell me if this is worth making it into the core some day
...
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de
More information about the TYPO3-dev
mailing list