This shows you the differences between two versions of the page.
wiki:projects:php:dokuwiki:print_view [2010/03/11 09:50] 63.230.176.202 fgWCOIFnRM |
wiki:projects:php:dokuwiki:print_view [2010/06/23 13:44] (current) e-razor old revision restored |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | uvZvr4 <a href="http://zepfuxkecmmp.com/">zepfuxkecmmp</a>, [url=http://tszkohwwodqc.com/]tszkohwwodqc[/url], [link=http://voeblbmkhkpn.com/]voeblbmkhkpn[/link], http://fuxozeoweyrk.com/ | + | ====== Dokuwiki - Print View Button ====== |
+ | Make use of the do=export_html option of doku.php. | ||
+ | |||
+ | That option removes all the buttons and stuff and shows the wikipage only. | ||
+ | |||
+ | ====== Changes: (dokuwiki-2006-03-09) ====== | ||
+ | * lib/tpl/default/main.php @ line 53 | ||
+ | <code> | ||
+ | <?php tpl_button('history')?> | ||
+ | ++ <?php print html_btn('show_print_view',$ID,'v',array('do' => 'export_html')) ?> | ||
+ | </div> | ||
+ | </code> | ||
+ | |||
+ | * inc/lang/en/lang.php @ line 15 | ||
+ | <code php> | ||
+ | $lang['btn_show'] = 'Show page'; | ||
+ | ++ $lang['btn_show_print_view'] = 'Print view'; | ||
+ | $lang['btn_create'] = 'Create this page'; | ||
+ | </code> | ||
+ | |||
+ | //[[mzalewski@wshe-dot-lodz.pl|Mariusz Zalewski]] 2006/12/02 21:18// | ||
+ | |||
+ | **2009/12/10 - Ronny**: Changes above (2006-03-09) are working with the current Release Candidate dokuwiki-rc2009-12-02 - regards. Ronny | ||
+ | |||
+ | ====== Changes: (dokuwiki-2005-02-18) ====== | ||
+ | * doku.php @ line 94 | ||
+ | <code php> | ||
+ | $r = html_btn('edit',$ID,'e',array('do' => 'edit','rev' => $REV),'post'); | ||
+ | ++ $r .= html_btn('show_print_view',$ID,'v',array('do' => 'export_html')); | ||
+ | } else { | ||
+ | </code> | ||
+ | |||
+ | * lang/en/lang.php @ line 14 | ||
+ | <code php> | ||
+ | $lang['btn_show'] = 'Show page'; | ||
+ | ++ $lang['btn_show_print_view'] = 'Print view'; | ||
+ | $lang['btn_create'] = 'Create this page'; | ||
+ | </code> | ||
+ | |||
+ | FIXME does no longer work... (doku.php has only 71 lines) | ||
+ | |||
+ | ====== Changes: (dokuwiki-2005-05-07) ====== | ||
+ | * inc/html.php @ line 107 | ||
+ | * lang/en/lang.php @ line 14 | ||
+ | |||
+ | ====== Changes: (dokuwiki-2005-07-13) ====== | ||
+ | |||
+ | * inc/html.php @ line 107 | ||
+ | * inc/lang/en/lang.php @ line 14 | ||
+ | |||
+ | |||
+ | This works for me - Ronny | ||
+ | |||
+ | ====== Changes: (dokuwiki-2005-09-22a) ====== | ||
+ | |||
+ | * inc/html.php @ line 106 | ||
+ | * inc/lang/en/lang.php @ line 14 | ||
+ | |||
+ | Works for me too ;-) Phil Wenzlawski | ||
+ | |||
+ | ====== Changes: (dokuwiki-2006-03-09) ====== | ||
+ | |||
+ | * inc/lang/en/lang.php @ line 16 | ||
+ | * inc/html.php @ line 115 | ||
+ | |||
+ | Here's the diff: | ||
+ | |||
+ | <code php> | ||
+ | --- /usr/share/dokuwiki/inc/lang/en/lang.php.orig 2006-06-14 16:47:03.000000000 -0400 | ||
+ | +++ /usr/share/dokuwiki/inc/lang/en/lang.php 2006-07-26 17:52:07.000000000 -0400 | ||
+ | @@ -13,6 +13,7 @@ | ||
+ | $lang['btn_edit'] = 'Edit this page'; | ||
+ | $lang['btn_source'] = 'Show pagesource'; | ||
+ | $lang['btn_show'] = 'Show page'; | ||
+ | +$lang['btn_show_print_view'] = 'Print view'; | ||
+ | $lang['btn_create'] = 'Create this page'; | ||
+ | $lang['btn_search'] = 'Search'; | ||
+ | $lang['btn_save'] = 'Save'; | ||
+ | --- /usr/share/dokuwiki/inc/html.php.orig 2006-06-14 16:47:03.000000000 -0400 | ||
+ | +++ /usr/share/dokuwiki/inc/html.php 2006-07-26 17:52:11.000000000 -0400 | ||
+ | @@ -112,6 +112,7 @@ | ||
+ | if($INFO['writable']){ | ||
+ | if($INFO['exists']){ | ||
+ | $r = html_btn('edit',$ID,'e',array('do' => 'edit','rev' => $REV),'post'); | ||
+ | + $r .= html_btn('show_print_view',$ID,'v',array('do' => 'export_html')); | ||
+ | }else{ | ||
+ | $r = html_btn('create',$ID,'e',array('do' => 'edit','rev' => $REV),'post'); | ||
+ | } | ||
+ | </code> | ||
+ | --- //[[joe+dokuwiki@nahmias.net|Joseph Nahmias]] 2006-07-26 18:02// | ||
+ | |||
+ | > Nice hack, here is patch file for Czech lanuague: | ||
+ | ><code> | ||
+ | *** lang.php.cz.orig 2006-08-09 19:06:56.000000000 +0200 | ||
+ | --- lang.php.cz 2006-08-09 19:07:21.000000000 +0200 | ||
+ | *************** | ||
+ | *** 11,16 **** | ||
+ | --- 11,17 ---- | ||
+ | $lang['btn_edit'] = 'Upravit stránku'; | ||
+ | $lang['btn_source'] = 'Zdrojový kód stránky'; | ||
+ | $lang['btn_show'] = 'Zobrazit stránku'; | ||
+ | + $lang['btn_show_print_view'] = 'Náhled tisku'; | ||
+ | $lang['btn_create'] = 'Vytvořit stránku'; | ||
+ | $lang['btn_search'] = 'Hledat'; | ||
+ | $lang['btn_save'] = 'Uložit'; | ||
+ | </code> | ||
+ | > Aleš Zelený | ||
+ | |||
+ | >>This does no longer seem to work with the current version of DokuWiki. Does anyone have a fix ? Thanks | ||
+ | [[hugh.norris@fenestros.org|Hugh Norris]] - 11/16/2006 |