[Typo3] Printable version
racco
raczek at open.infi.pl
Thu May 19 19:08:37 CEST 2005
Hello!
I've spent many hours to built a link for a site with print version, but I
failed. I do not know what is wrong...
I followed the instructions from Make Printlink documentation but it gives
nothing.
Here it is what I have done so far:
1) installed Make Print Link extension using Extension Manager
2) applied static plugin.alt.print (98) to my root page
3) modified Setup of my root page:
temp.PRINT = TEXT
temp.PRINT.value = printpage
temp.PRINT.postUserFunc = tx_make_printlink
temp.PRINT.postUserFunc.include_post_vars = 1
temp.PRINT.postUserFunc.target = _blank
temp.PRINT.postUserFunc.popup = 1
temp.PRINT.postUserFunc.windowparams = (
resizable=yes,toolbar=no,scrollbars=yes,menubar=no,width=800,height=500
)
temp.PRINT.postUserFunc.windowname = printwindow
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
# Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
# Substitute the ###menu_1### subpart with some example content:
subparts.content = COA
subparts.content {
10 = CONTENT
10 < styles.content.get
20 < temp.PRINT
}
As the output I get printpage link on every page, but after clicking it a
window with this content is dispalyed:
Title: My page
Subtitle:
Author:
--------------------------------------------------------------------------------
###CONTENT###
--------------------------------------------------------------------------------
Go back to the regular design...
Is it really so difficult to make something like this.....?
And what if I would like to have it only for a particular page??
I count on you, help me
racco
More information about the TYPO3-english
mailing list