Make use of the do=export_html option of doku.php.
That option removes all the buttons and stuff and shows the wikipage only.
<?php tpl_button('history')?>
++ <?php print html_btn('show_print_view',$ID,'v',array('do' => 'export_html')) ?>
</div>
$lang['btn_show'] = 'Show page'; ++ $lang['btn_show_print_view'] = 'Print view'; $lang['btn_create'] = 'Create this page';
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
$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 {
$lang['btn_show'] = 'Show page'; ++ $lang['btn_show_print_view'] = 'Print view'; $lang['btn_create'] = 'Create this page';
does no longer work... (doku.php has only 71 lines)
This works for me - Ronny
Works for me too
Phil Wenzlawski
Here's the diff:
--- /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'); }
— Joseph Nahmias 2006-07-26 18:02
Nice hack, here is patch file for Czech lanuague:
*** 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';
Aleš Zelený
This does no longer seem to work with the current version of DokuWiki. Does anyone have a fix ? Thanks
Hugh Norris - 11/16/2006