Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inlinetoc support #115

Closed
coastgnu opened this issue Nov 9, 2015 · 2 comments
Closed

Inlinetoc support #115

coastgnu opened this issue Nov 9, 2015 · 2 comments

Comments

@coastgnu
Copy link

coastgnu commented Nov 9, 2015

bootstrap3 misses support for the inlinetoc plugin https://www.dokuwiki.org/plugin:inlinetoc

In dokuwiki's default template inlinetoch prevents the regular toc to show up
In bootstrap3 inlinetoc and the regular toc shows up, that's a least one toc too much. :-)

the JS-Code for this is in inlinetoc.js

function hideDokuwikiToc() {
    if(document.getElementById('inlinetoc2')) {
        var elements = document.getElementsByTagName('div');
        for(var i=0; i < elements.length; i++) {
            if(elements[i].id == 'dw__toc') {
                elements[i].style.display = 'none';
                break;
            }
        }
    }
}

jQuery(hideDokuwikiToc);

regards,
thomas

@raychani
Copy link

I think the space is still remained by this code.
There is some new function for remove the div of toc. not hide.

@snptrs
Copy link

snptrs commented Aug 7, 2016

I've tried everything I can think of, and this still isn't working for me; my pages always have both TOCs visible. Any ideas what I might be doing wrong/what's going on here?

screen shot 2016-08-07 at 23 13 13

Dokuwiki Setup

DW Version: 2016-06-26a "Elenor of Tsort"
Bootstrap3 Template Version: 2016-07-05
Theme: Using Yeti, but the issue occurs with all the themes
InlineTOC Version: 2015-06-19

Test Page Content

# Page Heading

{{INLINETOC}}

## Subheading 1

## Subheading 2

## Subheading 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants