dokuwiki-plugin-revealjs icon indicating copy to clipboard operation
dokuwiki-plugin-revealjs copied to clipboard

Allow non edit user to export as PDF

Open EricMaeker opened this issue 7 years ago • 0 comments

If you want to allow user without edit rights to export revealjs slideshow to PDF follow this patch.

In syntax/theme.php line ~100 Replace

                    ($this->getConf('user_can_edit') ?
                        '<br><nobr><a target="'.$target.'" href="'.exportlink($ID,'revealjs',count($data)?$data:null).
                        '&print-pdf" title="'.$this->getLang('print_pdf').'">Print PDF</a></nobr>' :
                        '').
                    '</div>';

To

                    //($this->getConf('user_can_edit') ?
                        '<br><nobr><a target="'.$target.'" href="'.exportlink($ID,'revealjs',count($data)?$data:null).
                        '&print-pdf" title="'.$this->getLang('print_pdf').'">PDF</a></nobr>'.
                    //    : '').
                    '</div>';

EricMaeker avatar Nov 18 '17 13:11 EricMaeker