[TYPO3] printversion error in IE

JoH info at cybercraft.de
Wed May 24 11:20:11 CEST 2006


> I'm using the code below it's working in Firefox but i get an error in
> IE (Error. Reason: File "index.php" was not found). does anybody know
> how to solve this? I'm using REALURL by the way.
>
> # Print
> temp.Print = COA
> temp.Print {
>    wrap = <td align="right" width="100%" class="buttonheading"><a
> href="#" onclick='window.open("index.php|", "print",
> "width=800,height=600,left=0,top=0,scrollbars=yes,menubar=yes,
> resizable=1");'><img src="fileadmin/templates/images/printButton.png"
> alt="Afdrukken" align="middle" name="Afdrukken" border="0"
> /></a></td></tr></table>
>    1 = TEXT
>    1.data = field:uid
>    1.wrap = ?id=|&type=98
>    2 = TEXT
>    2.data = GPvar:tx_ttnews|tt_news
>    2.wrap = &tx_ttnews[tt_news]=|
> }
>
> Your help would be great!

You should do that with IMAGE and typolink.

temp.Print = IMAGE
temp.Print {
    wrap = <td align="right" width="100%"
class="buttonheading">|</td></tr></table>
    file = fileadmin/templates/images/printButton.png
    altText = Afdrucken
    imageLinkWrap = 1
    imageLinkWrap {
        enable = 1
        typolink.parameter {
            data = TSFE:id
            wrap = |,98 800x600:scrollbar=1,menubar=1,resizable=1 -
afdrucken
            additionalParams.data = GPvar:tx_ttnews|tt_news
            additionalParams.wrap = &tx_ttnews[tt_news]=|
        }
    }
}

The wrap of the typolink is split into 4 parts
link    target    class    title

Here it will be

link => 123,98
target => 800x600:scrollbar=1,menubar=1,resizable=1
class => -
title => afdrucken

This way you will get the link to page 123 with type 98 in a popup window,
where the link itself has no class but the title afdrucken.

Have a look at TSref for the rest of the typolink syntax.
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/5/8/

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de





More information about the TYPO3-english mailing list