[Typo3] Please help me get Make Printlink working
Jody Cleveland
Cleveland at winnefox.org
Fri Jun 17 20:52:09 CEST 2005
Hello,
I made the changes you suggested, and now the print link is static text,
no link. I've included all of my setup below. Is something in the wrong
order maybe?
# Externalize CSS and JS
#######################################
config.removeDefaultJS = external
config.inlineStyle2TempFile = 1
# Set Search Defaults
#######################################
page.config.index_enable = 1
page.config.index_externals = 1
plugin.tx_indexedsearch.show.rules = 0
# Setting up 'page' to be the default PAGE object (type=0)
#######################################
lib.stdheader.10.stdWrap.wrap =
tt_content.stdWrap.dataWrap =
#
# Don't add rendering comments around each item
#
tt_content.stdWrap.prefixComment =
tt_content.text.20.prefixComment =
#
------------------------------------------------------------------------
-------------------------
############################################
# 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
#
------------------------------------------------------------------------
----
page = PAGE
page.typeNum = 0
config.pageTitleFirst = 1
tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes
{
P.style=margin:10 50 0 0;
}
page.stylesheet = fileadmin/template/style.css
page.bodyTag = <body
background="fileadmin/template/images/background.gif" leftmargin="0"
topmargin="0" marginwidth="0" marginheight="0">
page.1 = TEMPLATE
page.1.marks.PAGE_UID = TEXT
page.1.marks.PAGE_UID.field = uid
page.1 {
template = FILE
template.file = fileadmin/template/template.html
workOnSubpart = DOCUMENT_BODY
subparts.CONTENT_LEFT < styles.content.getLeft
subparts.CONTENT_RIGHT < styles.content.getRight
subparts.CONTENT_BORDER < styles.content.getBorder
subparts.CONTENT < styles.content.get
# Bottom Navigation
#######################################
subparts.BOTTOMNAV = HMENU
subparts.BOTTOMNAV.special = directory
subparts.BOTTOMNAV.special.value = 1
subparts.BOTTOMNAV.1 = TMENU
subparts.BOTTOMNAV.1 {
NO.allWrap = |*| <span class="bottomnav"> | |</span> |*|
ACT = 1
ACT.allWrap = |*| <span class="bottomnav"> | |</span>
|*|
}
# Leftside Navigation
#######################################
subparts.LEFTNAV = HMENU
subparts.LEFTNAV.1 = TMENU
subparts.LEFTNAV.1 {
# Normal state properties
#######################################
NO.allWrap = <div class="leftnav1"> | </div>
# Enable active state and set properties:
#######################################
ACT = 1
ACT.allWrap = <div class="leftnav1-act"> | </div>
}
# Second level menu-object
#######################################
subparts.LEFTNAV.2 = TMENU
subparts.LEFTNAV.2 {
# Normal state properties
#######################################
NO.allWrap = <div class="leftnav2"> | </div>
# Enable active state and set properties:
#######################################
ACT = 1
ACT.allWrap = <div class="leftnav2-act"> | </div>
}
# Third level menu-object
#######################################
subparts.LEFTNAV.3 = TMENU
subparts.LEFTNAV.3 {
# Normal state properties
#######################################
NO.allWrap = <div class="leftnav3"> | </div>
# Enable active state and set properties:
#######################################
ACT = 1
ACT.allWrap = <div class="leftnav3-act"> | </div>
}
# Fourth level menu-object
#######################################
subparts.LEFTNAV.4 = TMENU
subparts.LEFTNAV.4 {
# Normal state properties
#######################################
NO.allWrap = <div class="leftnav4"> | </div>
# Enable active state and set properties:
#######################################
ACT = 1
ACT.allWrap = <div class="leftnav4-act"> | </div>
}
}
# Enabling recently updated pages sitemap
#######################################
tt_content.menu.20.5 {
special.limit = 5
1.NO.allWrap = | <br>
1.NO.after.cObject = TEXT
1.NO.after.cObject.wrap = <span> | </span>
1.NO.after.cObject.field = SYS_LASTCHANGED
1.NO.after.cObject.strftime = %m-%d-%Y
}
tt_content.menu.20.5.1.target = _top
# Enabling the admin panel for the 'page' PAGE object:
#######################################
page.config.admPanel=1
#PREVENTS EXISTING USERGROUPS BEING LOST IF A USER EDITS THEIR PROFILE
#######################################
plugin.feadmin.fe_users.edit.evalValues.usergroup = unsetEmpty
#ASSIGNS DEFAULT USERGROUP UID=1 TO ALL NEW USERS
#######################################
plugin.feadmin.fe_users.create.overrideValues.usergroup = 1
# Spam Protection for Email
#######################################
config {
spamProtectEmailAddresses = 2
spamProtectEmailAddresses_atSubst = (at)
}
- jody
> -----Original Message-----
> From: typo3-english-bounces at lists.netfielders.de
> [mailto:typo3-english-bounces at lists.netfielders.de] On Behalf
> Of Gert Kaae Hansen
> Sent: Friday, June 17, 2005 12:46 PM
> To: typo3-english at lists.netfielders.de
> Subject: Re: [Typo3] Please help me get Make Printlink working
>
> 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 :-)
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list