[dokuwiki] Frederick Manners: Problem with indexmenu plugin

  • From: Werner Flamme <werner.flamme@xxxxxx>
  • To: DokuWiki Devel <dokuwiki@xxxxxxxxxxxxx>
  • Date: Mon, 20 Feb 2017 13:10:01 +0100

Hi,

instead of a sidebar full with nice page names, I get a sidebar showing
entries like

--- snip---
indexmenu_168470329258aad7656551f.add('sap',0,-1,"SAP-Dokumentation",'sap:start');
--- pins ---

Looking at the page code, I see

--- snip---
<script type='text/javascript' charset='utf-8'>
<!--//--><![CDATA[//><!--
var indexmenu_168470329258aad7656551f = new
dTree('indexmenu_168470329258aad7656551f','default');
indexmenu_168470329258aad7656551f.config.urlbase='/dokuwiki/doku.php?id=';
indexmenu_168470329258aad7656551f.config.sepchar=':';
indexmenu_168470329258aad7656551f.config.useCookies=false;
indexmenu_168470329258aad7656551f.config.jsajax='%26sort%3Dt%26nsort%3D1';
indexmenu_168470329258aad7656551f.add('sap',0,-1,"SAP-Dokumentation",'sap:start');
--- pins ---

Everything after the starting <script type='text/javascript'
charset='utf-8'> is dumped in my sidebar.

So I guess the content is OK, but CDATA should not be here. Above this
CDATA code, I see the correct coding

--- snip ---
<div><div id="nojs_indexmenu_168470329258aad7656551f"
data-jsajax="%26sort%3Dt%26nsort%3D1" class="indexmenu_nojs">

<ul class="idx">
<li class="closed"><div class="li"><a
href="/dokuwiki/doku.php?id=sap:ausser:start"
class="indexmenu_idx_head">außerhalb des Systems</a></div></li>
--- pins ---

If I try to look at the sidebar page and try to edit in the main window,
the "sidebar" page is displayed fine. "Edit this page" shows the content
created weeks ago. I use

--- snip---
{{indexmenu>.#1|js context navbar nocookie nsort tsort}} and
--- pins ---

--- snip---
{{indexmenu>..#1|js#thread2 max#1#1 nocookie navbar skipfile=/sidebar/
nsort tsort}}
--- pins ---

The plugin itself is updated regularly via git from
https://github.com/samuelet/indexmenu.git.

How can I get back the nice sidebar I had until now?

Regards,
Werner
-- 


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

Other related posts: