[TYPO3-dev] [Typo3-dev] [TYPO3] Do you think too many wrap in typoscript template?
Dennis Cheung
hkdennis2k at gmail.com
Fri Dec 23 02:38:10 CET 2005
>Instead of multiple named stdWraps eg all objects could have a SWA
>(stdWrapArray) which could be used like this:
Oh, my Lord! No more unnecessary please...
Can we reuse the master stdWrap
i.e. (stdWrap).50.append=IMAGE
not. (stdWrap).wraps.50.append=IMAGE
>noTrimWrap is the only way to use wrap without trimming whitespace before
>wrapping.
>dataWrap can insert many different getText values at once.
>outerWrap sometimes is the only way of having an additional wrap around
>existing items, because they are already using things like wrap or innerWrap
>internally.
About the dataWrap, wrap, noTrimWrap
There should be an better way to do.
e.g.
(stdWrap).wrap=xxx|xxx
(stdWrap).wrap.insertData=1
(stdWrap).wrap.noTrim=1
(stdWrap).wrap.escapeHTML=1
You don't use wrap and noTrimWrap and dataWrap at same time? didn't it?
We are not looking for many different wrap.
You want a single wrap, but with different behavior.
At least, please somebody update the doc_core_tsref on typo3.org.
Let newbie know that they are unused.
Thanks,
Dennis
On 12/22/05, Martin Kutschker <Martin.Kutschker at n0spam-blackbox.net> wrote:
> Dennis Cheung schrieb:
> > Hi all,
> >
> > There are too many differenet warp in TS.
>
> Yes and no. The way TS evolved it was probably easier to add more wraps
> whenever the need arose than to make other changes.
>
> Instead of multiple named stdWraps eg all objects could have a SWA
> (stdWrapArray) which could be used like this:
>
> x = TEXT
> x.wraps.10.data = ...
> x.wraps.20.case = ...
> ...
> x.wraps.90.append = IMAGE
>
> Masi
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>
More information about the TYPO3-dev
mailing list