[TYPO3-UG Dutch] make_printlink 1.5.2 breekt W3C XHTML transitional

Jordan van Bergen jordanvanbergen at gmail.com
Sat Mar 22 12:52:45 CET 2008


Wellicht weet iemand hier de oplossing voor:

make_printlink 1.5.2 breekt W3C XHTML transitional

Ik heb extensie make_printlink 1.5.2 geinstalleerd.
In de CONSTANTS heb ik:

# --- template/stylesheet MAKE PRINT PAGE extensie bepalen --- 
plugin.alt.print >
plugin.alt.print {
  file.template = fileadmin/templates/template_print.html
  file.stylesheet = fileadmin/styles/defaultstylesheet_gdw.css
}

In SETUP heb ik:

#-----------
#print button
#-----------
temp.PRINT = IMAGE
temp.PRINT.file = fileadmin/images/printbutton.png
temp.PRINT.stdWrap.postUserFunc = tx_make_printlink
temp.PRINT.stdWrap.postUserFunc.include_post_vars = 1
temp.PRINT.stdWrap.postUserFunc.target = _blank
temp.PRINT.stdWrap.postUserFunc.popup = 1
temp.PRINT.stdWrap.postUserFunc.windowparams = 
resizable=yes,toolbar=yes,scrollbars=yes,menubar=yes,width=779,height=480
temp.PRINT.stdWrap.postUserFunc.windowname = printwindow

en de tijdelijke temp.PRINT stop ik in een subpart:

subparts.PRINTLINK< temp.PRINT

Deze wordt aangeroepen in de template en dat gaat goed. Verder is TYPE=98 
gedefinieerd:

alt_print >
alt_print = PAGE
alt_print.typeNum=98
alt_print.stylesheet = {$plugin.alt.print.file.stylesheet}
alt_print.bodyTag = <BODY onload="window.print();">
alt_print.10 = TEMPLATE
alt_print.10 {
  template = FILE
  template.file = {$plugin.alt.print.file.template}
  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
  }
  workOnSubpart = DOCUMENT_BODY
  subparts.CONTENT_MAIN< styles.content.get
}

Alles werkt super maar de link wordt met type 98 alsvolgt opgebouwd:
....&type=98....

om W3C compliant te zijn moet dit &amp;type=98 worden.

Iemand een idee hoe ik dit voor elkaar krijgt want nu is door de 
printfunctie de website niet meer XHTML 1.0 transitional compliant.

Groeten,
Jordan 



More information about the TYPO3-UG-dutch mailing list