|
Re: printable-page: msg#00111web.wiki.pmwiki.user
The other thing to do is include printable-page.php *after* you initialise $PageHeaderFmt and $PageFooterFmt, then the printable-page.php settings will take precedence. I have one set of headers and footers for normal browsing and a different set, in printable-page.php for ?action=print. And you could put your local/ definitions of $PageHeaderFmt and $PageFooterFmt inside an: if ($action=="browse") { ... } Hope this helps, JR. -- John Rankin john.rankin@xxxxxxxxxxxxxx www.affinity.co.nz/wiki On Friday, 20 June 2003 1:51 AM, Patrick R. Michaud <pmichaud@xxxxxxxxx> wrote: On Thu, Jun 19, 2003 at 07:55:13AM +0100, Giles Williams wrote: > I'm confused, > > Using printable-page.php, if there are settings for $PageHeaderFmt and > $PageFooterFmt in /local they seem to override the standard > printable-page settings when a page is referenced with action=print. > > How can I customise the $PageHeaderFmt and $PageFooterFmt so that I can > choose what appears with action=print ? In this case, instead of including the printable-page.php script directly, the easiest thing to do is to copy printable-page.php into local/ and modify it to set the page formatting variables to whatever you want. Printable-page.php is fairly short and straightforward in what it does. Pm |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: printable-page: 00111, Patrick R. Michaud |
|---|---|
| Next by Date: | Re: printable-page: 00111, Giles Williams |
| Previous by Thread: | Re: printable-pagei: 00111, Patrick R. Michaud |
| Next by Thread: | Re: printable-page: 00111, Giles Williams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |