[pmwiki-users] Re: pmwiki-users Digest, Vol 2, Issue 79

Ben Wilson dausha at gmail.com
Thu Aug 11 07:26:00 CDT 2005


I've completely disabled the print.tmpl in favor of a media="print"
approach using CSS. Below is the HTML that also points to a print.css
that can be used. I use "display:none;" to mask the sidebar and other
things I don't want printed. If you visit ualrsba.com and print,
you'll see what I mean. This just means I don't have but the one skin
to maintain.

 <link rel="stylesheet"
href="http://www.ualrsba.com/pub/skins/ualrsba/print.css"
type="text/css" media="print" />

Regards,
Ben

On 8/11/05, pmwiki-users-request at pmichaud.com > Message: 8
> Date: Thu, 11 Aug 2005 08:56:08 +0200
> From: stephane.smets at banksys.be
> Subject: [pmwiki-users] question about print.tmpl
> Hello everybody..
> 
> I'am facing with questions about printable view.
> 
> I would like to use my own template and I had try different way to do that,
> but nothing runs.
> 
> First test :     $ActionSkin['print'] = 'test'; in my config.php still the
> old print layout is shown,  like describe in an old pits (00211)
> Additionally, I put in hard the path to the tmpl file, doesn't run also. And
> with LoadPageTemplate( $pagename, "$SkinDir/print.tmpl"); the path is not
> filled in but maybe I don't declare correctly the variable.
> 
> And I notice also that Pmwiki try to do something because instead of taking
> the default tmpl it use the screen tmpl I create. It was like it use the
> PageSkinfmt.
> 
> Second test : $PrintSkinFmt  = "print.tmpl";
> Doesn't run also
> 
> Third test : I put my print.tmpl in the skin dir or in a subdir of the skin
> dir , called print : nothing happens.
> 
> Then, I change the print.tmpl of the lean skin wich is available in my farm,
> to add my little own text, to see what happens. And nothing appears! My own
> text is not in the page, and I seems in fact that is the default pmwiki.tmpl
> is used, not the lean/print/print.tmpl..
> 
> I also try to see the print output on the internet on installed wiki, I
> think they have all the same trouble.
> 
> Can somebody explain what I need to do? Is this a .. undocumented feature??
> 
> Thanks for the help
> 
> Stephane

-- 
Ben Wilson
" Mundus vult decipi, ergo decipiatur"




More information about the pmwiki-users mailing list