[TYPO3] Using 'cObj:parentRecordNumber' instead of option split
Tapio Markula
tapio.markula at dnainternet.net
Wed Apr 19 15:43:53 CEST 2006
Hi
Because option split works only for menus,
how cObj:parentRecordNumber could use for content objects,
for example for headers.
I tried this
lib.stdheader {
stdWrap.dataWrap.if.value=1
stdWrap.dataWrap.equals.data = cObj:parentRecordNumber
stdWrap.dataWrap = <div class="csc-header
csc-header-n{cObj:parentRecordNumber}"><table cellspacing="0"
cellpadding="0" border="0" width="100%"
style="margin:0"><tr><td><h1{register:headerStyle}{register:headerClass}>|</h1></td><td
align="right" class="printLink"><a class="printLink"
href="javascript:window.print()"><img
src="fileadmin/template/main/kuvat_catella/printer.gif"></a></td></tr></table></div>
}
All headers get the same kind of wrap - table around the header.
I could hide the table using for example
class="headerTable-n{cObj:parentRecordNumber}
when headerTable-n1 .printLink {display:none}
But there would be much unnecessary code.
And what about other values than '1'.
More information about the TYPO3-english
mailing list