orangain / dokuwiki-copypage-plugin

DokuWiki plugin to create a new page from an existing page.
https://www.dokuwiki.org/plugin:copypage
0 stars 3 forks source link

Works from menu, not from sidebar, in bootstrap menu #5

Closed vincentkersten closed 8 years ago

vincentkersten commented 8 years ago

Dear Orangain, in the bootstrap3 theme side-bar menu i do see the 'puzzle piece' icon for copypage. Hoovering over it it highlights both the 'Edit this page' (pencil) and Copypage (puzzlepiece). Clicking in the right side-bar on the copypage icon does not do anything, however, choosing it from the dropdown menu (where copypage shows up under 'page tools') , and when selected it does bring up the copy dialog and all works fine. Any idea what is buggin it in bootstrap?

plugins: edittable indexmenu newpagetemplate addnewpage upload dw2pdf

I am using the bootstrap3 theme in the dokuwiki "Detrius" version.

Regards,

Vincent

orangain commented 8 years ago

Hi Vincent,

Thank you for reporting the issue. This is because the plugin assumed that there is only one page tools in the page, but Bootstrap3 template renders page tools more than once in both menu and sidebar.

I've fixed the issue and released new version 2016-01-29. Could you try upgrading the copy page plugin from your DokuWiki's plugin manager? If you have any problem, please feel free to reopen this issue.

vincentkersten commented 8 years ago

Hi Orangain, after reinstalling the plugin it works now from both locations. Thank you very much for your prompt response!

...One more thing .... when i hit cancel in the copypage dialog box, it jumps to https://example.com/doku.php?id=&do=edit&copyfrom=the_page_I_was effectively landing in the toplevel 'start' page in edit mode (prolly because the id= is blank) instead of just closing the dialog. I think I should actually make this a new issue, just a sec. So thanks once more for the quick fix!

Vincent

Juergen-aus-Zuendorf commented 6 years ago

One little thing remaining: The sidebar has no special icon and no explaining text: grafik Is it possible to implement this too?

Best regards Juergen

orangain commented 6 years ago

@Juergen-aus-Koeln No, it's impossible for this plugin. Please consult to the Bootstrap3 template.

The Bootstrap3 template renders menu icons using Web fonts instead of default PNG image. This means that the Bootstrap3 template does not respect menu icons specified by individual plugins. The Bootstrap3 template shows the puzzle icon except for a few known plugins (see: https://github.com/LotarProject/dokuwiki-template-bootstrap3/blob/v2016-12-12/tpl_functions.php#L197-L221).

The explaining text of menu item is also hidden by the Bootstrap3 template.