Description

I cannot see the page credits in print view. i have configure the following line in my wikiconfig.py file

page_credits = 'Copyright 2011 MyCompanyName GmbH',

the orignal page shows me the page_credits at the bottom of the page, But if i select print view option then this page_credits doesn't appear there.

i eidted the "print.css" file of my theme with following way. but no success.

I have edited the line number 50. you can see the difference here. I removed the only #credits from the line 50.

/* user interface styles */

-#header, #sidebar, #footer, #timings, #credits, #interwiki, #pagelocation {
+#header, #sidebar, #footer, #timings, #interwiki, #pagelocation {
    display: none;
}

Steps to reproduce

  1. do this...

Example

Component selection

Details

MoinMoin Version

193

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

this is because of

http://hg.moinmo.in/moin/1.9/file/c162353f99ed/MoinMoin/theme/__init__.py#l1842

One need to overwrite def send_footer(self, pagename, **keywords): in an own theme copy.

Solution

here is the complete solution if you want to show the page_credit in the print view mode.

   1 --- D:\Program Files\Python26\Lib\site-packages\MoinMoin\theme\__init__ - Orignal.py Sat Jun 26 23:46:44 2010
   2 +++ D:\Program Files\Python26\Lib\site-packages\MoinMoin\theme\__init__ - Changed.py Mon May 16 14:39:33 2011
   3 @@ -1841,6 +1841,7 @@
   4          # Emit end of page in print mode, or complete footer in standard mode
   5          if keywords.get('print_mode', 0):
   6              request.write(self.pageinfo(d['page']))
   7 +            request.write(self.credits(d['page'])) #add this line to get the page credits for print view.
   8              request.write(self.endPage())
   9          else:
  10              request.write(self.footer(d, **keywords))

   1 --- D:\Program Files\Python26\Lib\site-packages\MoinMoin\web\static\htdocs\rightsidebar\css\Orignal_print.css Sat Jun 26 23:46:46 2010
   2 +++ D:\Program Files\Python26\Lib\site-packages\MoinMoin\web\static\htdocs\rightsidebar\css\Changed_print.css Mon May 16 14:45:36 2011
   3 @@ -46,8 +46,15 @@
   4  }
   5  
   6  /* user interface styles */
   7 +#credits {
   8 +text-decoration: none;
   9 +color: gray;
  10 +font-size:0.88em;
  11 +text-align: center;
  12 +list-style-type: none;
  13 +}
  14  
  15 -#header, #sidebar, #footer, #timings, #credits, #interwiki, #pagelocation {
  16 +#header, #sidebar, #footer, #timings, #interwiki, #pagelocation {
  17      display: none;
  18  }
  19  

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/PageCreditsInPrintView (last edited 2011-05-16 16:53:26 by ReimarBauer)