hungup21 I would like to move the TOC to a different location, preferably on the left side
In /dokuwiki/conf/userall.css
paste following code:
div.float_left {
float: left !important;
margin-right: 0.5rem !important;
margin-bottom: 1.5rem !important;
}
h1.toc_wrap,
h2.toc_wrap,
h3.toc_wrap:not(.toggle),
h4.toc_wrap,
h5.toc_wrap,
h6.toc_wrap {
display: inline-block !important;
max-width: 60% !important;
}
In /dokuwiki/conf/userscript.js
paste following code:
if ( JSINFO['id'] == 'wiki:syntax' ) {
setTimeout(function() {
jQuery("div.dw__toc").addClass('float_left');
jQuery("#dokuwiki__content").find("h1, h2, h3, h4, h5, h6").addClass('toc_wrap');
}, 100);
}
Those files are meant to be for user code and they are update save. However, if those files do not yet exist, just create them! It's up to you! The above code is page specific. You can add more pages to the if-statement like so:
if ( JSINFO['id'] == 'wiki:syntax' || JSINFO['id'] == 'wiki:welcome' || JSINFO['id'] == 'wiki:dokuwiki' ) {
...
}
Make sure to clear the cache (close and restart your browser). With Firefox you might also have to clear temporary internet files (cache) via the settings.
Cheers!