[Typo3] Make print link
Gert Kaae Hansen
kaae at tyksak.dk
Sat May 14 13:39:07 CEST 2005
I am getting crasy :-)
I have make print link to work on other pages but on this new site i can't
get it to work.
If you trey it with firefox the page printed as it should but IE generates
an error.
############################################
# Type 98 template - printversion
alt_print >
alt_print = PAGE
alt_print.typeNum=98
alt_print.stylesheet ={$plugin.alt.print.file.stylesheet}
alt_print.10 = TEMPLATE
alt_print.10 {
template = FILE
template.file = {$plugin.alt.print.file.template}
workOnSubpart = DOCUMENT_BODY
marks {
PAGE_TITLE = TEXT
PAGE_TITLE.field = title
PAGE_SUBTITLE = TEXT
PAGE_SUBTITLE.field = subtitle
PAGE_AUTHOR = TEXT
PAGE_AUTHOR.field = author
PAGE_AUTHOR.required=1
PAGE_AUTHOR.typolink.parameter.field = author_email
PAGE_UID = TEXT
PAGE_UID.field = uid
TITLE =TEXT
TITLE.data = page:title
DATE = TEXT
DATE.data= date:U
DATE.strftime = %A, %e. %B %Y
CONTENT < styles.content.get
}
}
# Tildeling af link til type 98 printversion
subparts.tprint = COA
subparts.tprint.20 = IMAGE
subparts.tprint.20.file = fileadmin/template/test/h_print.gif
subparts.tprint.20.stdWrap.postUserFunc = tx_make_printlink
subparts.tprint.20.stdWrap.postUserFunc.popup=1
subparts.tprint.20.stdWrap.postUserFunc.windowparams =
(resizable=yes,toolbar=no,scrollbars=yes,menubar=no,width=800,height=500)
subparts.tprint.20.stdWrap.postUserFunc.windowname = Holtum Rejser
subparts.tprint.20.stdWrap.postUserFunc.target = _blank
##############################################
You can test the print function on http://test.holtum-rejser.dk If you have
any clue how to solved this i would be quit happy :-)
--
Hilsen
Gert Kaae Hansen
E-mail: kaae at tyksak.dk
Web: www.tyksak.dk
More information about the TYPO3-english
mailing list