[Typo3] Please help me get Make Printlink working

Gert Kaae Hansen laptop at tyksak.dk
Fri Jun 17 19:46:13 CEST 2005


Hi


> Hello,
> 
> I'm running Typo 3.8 on a Redhat 3.0 AS server.
> 
> I'm trying desperately to get the Make Printlink extension working.
> Anything I have in setup is completely ignored, and just takes the link
> and adds # to it. You can see what I mean here:
> http://www.wals.lib.wi.us/dummy-3.8.0/index.php

In Constants you must defind the following

#Print
plugin.alt.print.file.stylesheet = fileadmin/printlink/print.css
plugin.alt.print.file.template = fileadmin/printlink/print.htm

In setup

############################################
# 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.50 = IMAGE
subparts.tprint.50.file = fileadmin/printlink/print.gif
subparts.tprint.50.stdWrap.postUserFunc = tx_make_printlink
subparts.tprint.50.stdWrap.postUserFunc.popup=1
subparts.tprint.50.stdWrap.postUserFunc.windowparams = 
(resizable=yes,toolbar=no,scrollbars=yes,menubar=no,width=800,height=500)
subparts.tprint.50.stdWrap.postUserFunc.windowname = Change this
subparts.tprint.50.stdWrap.postUserFunc.target = _blank
##############################################

subparts.m-print < subparts.tprint

In my HTML file:
<div class="m-print">Print</div>

Hope this will help you :-)



More information about the TYPO3-english mailing list