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

TOC Enhancements. #78

Closed
Rojoss opened this issue Sep 9, 2015 · 5 comments
Closed

TOC Enhancements. #78

Rojoss opened this issue Sep 9, 2015 · 5 comments

Comments

@Rojoss
Copy link

Rojoss commented Sep 9, 2015

Currently the TOC isn't very nice in my opinion.
For example that it closes when you scroll down and up again.
It should be an setting that the TOC will remained opened if it's opened and remain closed if it's closed.

It should also be a setting that the fixed TOC gets the opened/closed state from the static TOC.
So if I open the TOC on the page and then scroll down that the TOC stays open.
And then when I scroll up again that the TOC will be opened on the page.

Currently when you open the TOC scroll down it will close the TOC.
And even when you scroll back up the TOC remains closed.

I would just like some more control for the TOC because the current layout isn't that great in my opinion.
It's there to make navigation easier but having to click on it to open every time doesn't make it much faster compared to just scrolling down.

It would also be great that it shows all other headings when you hover over a heading.
Pretty much like what happens when you scroll down but then when you hover over a link/button in the TOC menu that it shows all sub headers.

@vlec-be
Copy link

vlec-be commented Feb 18, 2016

This is a good idea. It would also be nice to have a setting that allow to get a closed TOC when opening a page.

@hvarga
Copy link

hvarga commented Feb 27, 2016

I can also agree on this.

@tysoncecka
Copy link
Contributor

I'd like to add my vote for features like these. The TOC is especially hard to deal with on mobile devices (where it could potentially be very useful) in that it will auto-collapse too soon and disturbs the page flow a great deal when it does if there are a lot of sections.

As a quick fix I set it to not disturb the rest of the page on mobile, but I would rather have the option to start collapsed.
@media only screen and (max-width: 640px) { body.lumen #dokuwiki__toc_wrapper.affix-top { position: fixed; }}

giterlizzi added a commit that referenced this issue Jun 11, 2016
What's new in this TOC:

  * Now the TOC is in different column to not interfere with page flow and Bootstrap Wrapper components (eg. jumbotron, alerts, callouts, etc)
  * Automatic height resize of TOC
  * Initial support to mobile layout (full support in progress)
  * Manual TOC show/hide
  * Automatic TOC hide during scroll
  * Automatic TOC show when scoll up
  * New option to select a position of TOC (default: right)


(#162,#142,#103,#78,#68)
giterlizzi added a commit that referenced this issue Jun 16, 2016
…disable automatic collapse of the TOC during the scroll of the page (thanks to @tysoncecka on #162).

(#162,#142,#103,#78,#68)
@issmirnov
Copy link

Could we extend the same logic to the admin menu? See #200

@giterlizzi giterlizzi modified the milestone: v2016-06 Jun 23, 2016
@teatall
Copy link

teatall commented Dec 4, 2018

I still think the current TOC could be better if it could be integrated into nav#dw__pagetools and made into a popover element as in Bootstrap3. What do you think?

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

7 participants