[Typo3] print link
racco
raczek at open.infi.pl
Sun Jun 26 14:23:29 CEST 2005
Hello!
I want to have an icon of printer on every page, so I put in my TS something
like this:
temp.PRINT = COA
temp.PRINT.wrap = <div class=printer> | </div>
temp.PRINT {
stdWrap.postUserFunc = tx_make_printlink
stdWrap.postUserFunc.target = _blank
stdWrap.postUserFunc.popup = 1
stdWrap.postUserFunc.windowparams = (
resizable=yes,toolbar=no,scrollbars=yes,menubar=no,width=800,height=500)
stdWrap.postUserFunc.windowname = printwindow
10 = TEXT
10.value = print site
20 = IMAGE
20.file = fileadmin/template/main/images/printericon.gif
}
and then
subparts.content = COA
subparts.content {
wrap = <div class="content">| </div>
5 = COA
5< temp.PRINT
10 = CONTENT
10 < styles.content.get
.....
The image is displaye correctl, all works, but I noticed, that not only
image and text print site are the link, but the whole row!! I do not know
what is going on. The HTML output of this fragment is:
<td class="content" rowspan="2">
<div class="content">
<a href="#" onfocus="blurLink(this);"
onclick="window.open('index.php?id=144&type=98','printwindow','(
resizable=yes,toolbar=no,scrollbars=yes,menubar=no,width=800,height=500)');">
<div class=printer>print site <img
src="fileadmin/template/main/images/printericon.gif" width="20" height="16"
border="0" alt="" title="" />
</div>
</a>
So what is going on?
:)
greetings!
racco
More information about the TYPO3-english
mailing list