[dokuwiki] Re: Frederick Manners: Problem with indexmenu plugin

  • From: Werner Flamme <werner.flamme@xxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 24 Feb 2017 11:33:47 +0100

Klap in [23.02.2017 20:04]:

If you are not the sidebar page itself, you should not see the double
indexmenu.

OK

But if you visit the sidebar as normal  page, the fallback mechanism of
indexmenu kicks in to prevent some unhandy technical duplicated things.
This creates a bit strange view.

If I take the sidebar as a normal page (as needed for creation and
editing), the markup

{{indexmenu>.#1|js context navbar nocookie nsort tsort}}

generates one indexmenu display without js on top of one indexmenu
display with js layout.

If the sidebar-page is on display in the sidebar, I get a lot of
annoying CDATA before the indexmenu display with js layout shows up.


But I am right that at other pages it works just as you expect?

I use indexmenu only in the sidebar page, but all other pages show up
correctly.

In the meantime I did a new setup (from git, stable branch, as I have in
use currently) and installed most of the plugins that are in my now
not-so-working DW install. It is on the same host, and thus has the same
software with identical settings around, and is accessible by another
logical hostname - and it works as expected.

I'm totally confused what caused the output of CDATA on my first
installation.

However, now I have to move the freshly checked out DW files over to the
directories of my old installation, and I'm curious whether this will
help... I better have a "diff" running for each file first...

Kind regards,
Gerrit

Regards,
Werner



Op do 23 feb. 2017 om 14:02 schreef Werner Flamme <werner.flamme@xxxxxx>

Andreas Gohr [20.02.2017 18:50]:
--- snip---
{{indexmenu>.#1|js context navbar nocookie nsort tsort}} and
--- pins ---

I just installed the indexmenu plugin via the extension manager and
used the syntax above and it works fine for me. Not sure what the
exact problem is. I don't think it's the cdata parts. I suggest
checking your javascript error console. Maybe there's a pointer on
what's going wrong there?

Also maybe open a bug report on the indexmenu (I don't know it very well)

Andi


Now I did a fresh install via git, added only one plugin (indexmenu),
and it works.

If I call doku.php?id=sidebar, I have the Indexmenu in js layout in the
sidebar, and in both layouts (doubled) in the main window.

Due to using SLES 12, I am stuck with PHP 5.5.

Regards,
Werner


--






-- 


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Other related posts: