Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
dokuwiki:server [2024/06/10 17:41] – [Customization] Bernard Condraudokuwiki:server [2024/06/11 09:27] – [Customization] Bernard Condrau
Line 50: Line 50:
   - ...and replace at the end line ''act_dispatch();'' with<file>init_lang($langcode);   - ...and replace at the end line ''act_dispatch();'' with<file>init_lang($langcode);
 bethico_dispatch(basename(__FILE__));</file> bethico_dispatch(basename(__FILE__));</file>
-  - Add a line to file ''/lib/scripts/page.js'' to allow the template to set the table of contents to //open// or //closed//<file>$handle[0].setState = function(state){+  - Add a line to file ''/lib/scripts/page.js'' in function ''makeToggle'' to allow the template to set the table of contents to //open// or //closed//<file>$handle[0].setState = function(state){
             var hidden;             var hidden;
-            if(!state && JSINFO.toc) state = JSINFO.toc.initial_state;+        --> if(!state && JSINFO.toc) state = JSINFO.toc.initial_state;
             if(!state) state = 1;</file>             if(!state) state = 1;</file>