[TYPO3-dev] Multiple stdWraps

JoH asenau info at cybercraft.de
Fri Jul 29 20:20:08 CEST 2011


> How about if we allow multiple (ordered) stdWraps to be executed as a
> general stdWrap-functionality? Imho it shouldn't conflict with the
> stdWrap-settings we already have and would allow to execute stdWraps is
> an arbitrary order, multiple ones in one go.
>
> For the above mentioned string-replacements that could imho mean:
> 20 = TEXT
> 20 {
>    value = There_is_a_cat,_a_dog_and_a_tiger_in_da_hood!_Yeah!
>    stdWrap {
>      10.replacement {
>        search = ...
>        replace
>      }
>      20.replacement {
>        search = ...
>        replace
>      }
>    }
> }

This is pretty much the same thing as:

20 = TEXT
20 {
	value = There_is_a_cat,_a_dog_and_a_tiger_in_da_hood!_Yeah!
	stdWrap.replacement {
		search = ...
		replace
	}
	stdWrap.stdWrap..replacement {
         	search = ...
	        replace
       	}
     }
}

So it can be done already with the only difference, that the recursive 
stdWrap call will be executed in reverse order.

On the other hand it could be nice to have a more structured 
visualisation of the chain.
So I think it would be nice to but not a must have.

Cheers

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