[TYPO3] Automatic ordening of header tags

Edwin Blokker a.stoutjesdijk at chello.nl
Fri May 4 00:55:23 CEST 2007


Thanks for sharing Tobias! Also I'm still very curios about the code 
used by Tyler, since i'm far from a typoscript expert. So when you've 
found it.. :)



Tobias Erlacher schreef:
> Hi,
> 
> I have used a similar snippet in one of the projects i did, it uses h1 
> for the first element in the normal content column, h2 for the content 
> that is comming from the right column and h3...h6 for additional 
> contents in the normal column, i think you can adapt it easily:
> 
> lib.stdheader >
> lib.stdheader = CASE
> lib.stdheader {
>   key.field=colPos
>   # right column h2
>   2 =TEXT
>   2.field=header
>   2.wrap=<h2>|</h2>
>   2.required=1
> 
>   default=COA
>   # h1 for 1. element
>   default.10=TEXT
>   default.10{
>     field=header
>     wrap=<h1>|</h1>
>     if.value=1
>     if.equals.data = cObj:parentRecordNumber
>     required=1
>   }
>   #h3 for 2. element
>   default.20<.default.10
>   default.20.if.value=2
>   default.20.wrap=<h3>|</h3>
> 
>   #h4 for 3. element
>   default.30<.default.10
>   default.30.if.value=3
>   default.30.wrap=<h4>|</h4>
> 
>   #h5 for 4. element
>   default.40<.default.10
>   default.40.if.value=4
>   default.40.wrap=<h5>|</h5>
> 
>   #h6 for 5. element and rest
>   default.50<.default.10
>   default.50.if>
>   default.50.if.value=4
>   default.50.if.isGreaterThan.data = cObj:parentRecordNumber
>   default.50.wrap=<h6>|</h6>
> }
> 
> 
> Tobias Erlacher
> 
> www.typo3wizard.com


More information about the TYPO3-english mailing list