tormec / AcMenu

DokuWiki plugin which provides an accordion menu for namespaces and relative pages.
https://www.dokuwiki.org/plugin:acmenu
1 stars 3 forks source link

Doesn’t load page title accordion correctly #10

Open eduardomozart opened 1 year ago

eduardomozart commented 1 year ago

Hello, I recently installed the plugin on a PHP 8.1 instance with DokuWiki “Igor” but I noticed that subpages are not being performed correctly. For example I created the page with ID “wiki” and within that namespace I created subfolders but notice that the namespace name is displayed (“wiki”) and the page name is displayed as a separate item (“DokuWiki”) . When I click on the “wiki” namespace it displays the child pages and when I click on “DokuWiki” it loads the page with id “wiki”. 1AB61444-F89F-4528-9893-CE93027FAFCC 0401A231-C960-4EAD-8B37-00A2B227BFC6 I believe this problem maybe related to the “:start” namespace suffix because it shows the ns page (":wiki:start") as inexistent (red link), but the page itself exists (":wiki"). Enabling/Disabling the “useheading” parameter at DokuWiki config didn't seems to affect this issue. image I’m using the Read the DOKUS template. The CSS is wrong so the sidebar is misaligned but I pretend to report it soon.

tormec commented 1 year ago

I didn't properly understand the menu structure that you want to test.

For example, I created the page with ID “wiki” and within that namespace I created subfolders but notice that the namespace name is displayed (“wiki”) and the page name is displayed as a separate item (“DokuWiki”) .

Is, perhaps, the following one?

+ wiki
    + start.txt (wiki:start)
    + dokuwiki.txt (wiki:dokuwiki)
+ wiki (wiki)

Between brackets is the link to the relative page that one has to paste in the search bar to create them.

image

I believe this problem maybe related to the “:start” namespace suffix because it shows the ns page (":wiki:start") as inexistent (red link), but the page itself exists (":wiki").

Even if you delete the page wiki:start the menu is rendered properly.

image