[TYPO3-english] Wrap condition (required = 1) is not working!
Benoit Montereau
bmontereau at gmail.com
Mon Sep 12 01:29:11 CEST 2011
Using the following TS code I would expect to "output" an html part of code
or just nothing depending whether the select in tt_content is returning
records or nothing:
temp.listConnexe = COA
temp.listConnexe {
10 = CONTENT
10 {
table = tt_content
select {
languageField=sys_language_uid
where = (colPos=2)
orderBy = sorting
}
renderObj = COA
renderObj {
10 = TEXT
10 {
field = header
wrap = <h3>|</h3>
}
20 = TEXT
20 {
field = bodytext
wrap = <p>|</p>
}
wrap = <div data-role="collapsible" data-collapsed="true"
data-theme="b">|</div>
required = 1
}
wrap = <div data-role="content"><div class="ui-body ui-body-d"><div
data-role="collapsible-set">|</div></div></div>
required = 1
}
}
Unfortunately, I'm always getting back at least the latest "wrap" operation
(I mean <div data-role="content"><div class="ui-body ui-body-d"><div
data-role="collapsible-set"></div></div></div>), so it looks like the
required = 1 condition is not used.
Sure I'm doing something wrong here but I'm searching for hours now and I
cannot get my script working.
Hope someone can help me.
Thank you in advance,
Ben
More information about the TYPO3-english
mailing list