[Typo3] Typoscript: yet another conditions question (2nd round)

Paolo Nugnes paolonu at libero.it
Thu Apr 14 18:35:18 CEST 2005


Thanx Joey,

Well, this solves a problem but creates another one, as a matter of fact my 
plugin involves more labels and fields. That's how it generally looks:

plugin.tx_myext_p1 {
    label
    content1.required=1
    content1.wrap = | <br />
    content2.required=1
    content2.wrap = | <br />
    label2
    content3.required=1
    content3.wrap = | <br />
    content4.required=1
    content4.wrap = | <br />
...
    labelN
    contentX.required=1
    contentX.wrap = | <br />
    contentY.required=1
    contentY.wrap = | <br />
}

so, putting the
...
    wrap =   label |
    required = 1
...

would wrap the entyre std content, not only fields i need to.

Would line numbers make the deal?
e.g.
    10.wrap =   label |
    10.required = 1
    10.content1.required=1
    10.content1.wrap = | <br />
    10.content2.required=1
    10.content2.wrap = | <br />
    20.wrap =   label |
    20.required = 1
    20.content3.required=1
    20.content3.wrap = | <br />
    20.content4.required=1
    20.content4.wrap = | <br />

Thanx again
Paolo Nugnes

> Same way as you did it with content?
>
> plugin.tx_myext_p1 {
>    wrap =   label|
>    required = 1
>    content1.required=1
>    content1.wrap = | <br />
>    content2.required=1
>    content2.wrap = | <br />
> }
>
> Something like that should be working
>





More information about the TYPO3-english mailing list