[TYPO3-dev] Building my own headers
Fred
hamel at urbansecurity.org
Wed Jul 11 12:47:09 CEST 2007
Hello,
I would like to insert a php function into my headers, to display flags
depending on the link my header is pointing.
My script works fine, I used it on a Tmenu, now I'm trying to insert it
into the header-type content but only when this content is on display = 2.
I did something like that :
lib.stdheader.stdWrap.dataWrap = <div class="csc-header">|</div>
#header normal
lib.stdheader.10.1.fontTag = <h1>|</h1>
#header layout 2
lib.stdheader.10.2 = COA
lib.stdheader.10.2{
10 = TEXT
10.value = <table><tr><td><h1>
20 = TEXT
20.value = {field:header}</h1></td><td>
20.insertData = 1
30 = USER
30.userFunc = user_functions->my_flags
30.factor = {field:header_link}
30.factor.insertData = 1
40 = TEXT
40.value = </td></tr></table>
}
But I've got a bug with the contents below (all is in one column) and
I'm not sure this is the better way to do it.
Does anyone has a suggestion ?
Thanks by advance.
More information about the TYPO3-dev
mailing list