פתח באופן מלא את תוכן העניינים

סיכום מבוסס בינה מלאכותית

Users are discussing the functionality of the Table of Contents (TOC) plugin, specifically requesting an option to view the entire TOC at once instead of a dynamically expanding version. curi initiated the discussion, highlighting the usefulness of a full outline for skimming and navigation. Ralf_Stockmann seconded this feature request, suggesting an “expand all” button or link. misterjtc observed odd behavior with the plugin and also prefers a fully expanded TOC, sharing a GIF to illustrate the issue. This preference is echoed by [Yixin_Yang](/t/-/270661/4] and aas. A temporary CSS hack to achieve this functionality was provided by pipkin, involving adjusting the max-height and overflow properties in the theme’s custom CSS. Yunpeng_Tai confirmed the effectiveness of this hack, while alltiagocom expresses the desire for a native solution to avoid reliance on CSS modifications.

Is there any way to make the entire TOC show up at once instead of dynamically hiding most of it? A full post outline can be useful for finding a section without knowing and clicking through its ancestry, or so you can just read all the section names as a way to skim a post.

4 לייקים

I would second this feature request. I can see that this might result in long TOCs, but at least one could add an “expand all” button or Link?

3 לייקים

I am wondering how the TOC plugin is intended to function as I am finding its behaviour sort of odd. I have attached an animated gif below showing my observed behaviour. Is this intentional?

tocissue

My personal thought/preference is that the TOC is just fully expanded from the start.

Thanks in advance!

4 לייקים

And I’d really appreciate it if the option “expand all” would be developed soon.

לייק 1

While I do love the dynamically expanding ToC, I agree that it would be really nice to have the option to dipslay a fully expanded ToC for longer wikis!

5 לייקים

Let me give you a dirty hack:

.d-toc-sublevel {
	max-height: 500em !important;
    overflow: visible !important;
    opacity: 1 !important;
}

Copy-paste it into your themes custom CSS somewhere in

https://www.your-domain.com/admin/customize/themes/.

7 לייקים

Works like a charm :fist_left:

2 לייקים

זו תהיה תוספת טובה כדי להימנע מהסתמכות על (יותר) CSS.

לייק 1