DiscoTOC - automatic table of contents

Hello…

I have a problem with using DiscoTOC, maybe someone has an idea.

Imagine DiscoToc, working perfectly, for a topic, as an example:

  • link a → adds “link-a-1” to the end
  • link b → adds “link-b-2” to the end

Suppose I shared link a with someone: (“…link-a-1”)

Now, imagine that I reordered the topics (I put “link b” before).
Using DiscoToc, it looks like this:

  • link b → adds “link-b-1” to the end
  • link a → adds “link-a-2” to the end

And from now on, the link I had shared no longer works.
I shared (“…link-a-1”), but now the correct one is (“…link-a-2”)

I would really appreciate it if anyone has any ideas.

2 Likes

BUG REPORT!

En-dashes and em-dashes autogenerated by groupings of 2 or 3 dashes no longer work when DiscoTOC is active. Instead of – or — they go back to being -- or ---.

2 Likes

Hope to add an option to support opening the directory function for all posts with one click!

1 Like

2024-11-02T22:00:00Z
Error report: When clicking on a directory, the displayed content position does not match the directory’s location

Basically, the current page “DiscoTOC - automatic table of contents” is also incorrectly located.

Can you be more specifici and provide an example. the TOC is loading and working as expected for me on all my Discourse forum instances.

The page you linked loads properly and the TOC is working.

2 Likes

Thank you for your reply. I haven’t found the problem now, but there was indeed a problem at that time.

A post was split to a new topic: Add button to TOC theme component

Reader Mode conflics with Disco TOC

it seems we can’t have both the Table of Content (by DiscoTOC, mandatory for big documents) and Reader Mode (also mandatory for big documents)

the TOC list overlaps and hides Reader Mode icon (and the post operations menu icon)

4 Likes

Question on topic - Is there a function or plugin that can automatically generate a list of all the category topics, to help generate up TOC or even Wiki type post content?

This is a save manual effort fix.

A little scripting, but it would be interesting to have maybe a tag that would do it, then being native to discourse, something that prints all the topics (titles) in a speech category (and live links them).

However I suppose it might be better implemented within the LINK button feature, when you click you can input-search for the topic you are looking, but now you have a new top level option like

"Print-links : all topic titles from X category" button :slight_smile:

I would assume order by topic date new/old toggle would be useful.

This is probably a feature request but I thought I would inquire here as it is more relevant as I was thinking of use case with DiscoTOC, as to to do this manually.

Maybe AI does this but we don’t use the AI features, perhpas it really is more aligned as a breakout of the LINK button feature maybe more than DiscoTOS and there might be a wider application usage base than even I am imaging.

I imagine this is fairly obvious, but this component doesn’t work with the Blog Post Styling component as that hides the sidebar.

I suggest having an ‘inline TOC’ option, like how the plugin used to be, if there’s any interest in making them work together.

The inline one is useful as an option so being able to switch would be wonderful. Its great for some usecases because its really obvious for users, while the new one is smarter but a little tucked away and can be missed.

When your primary intention is for all users to jump right to the section they are interested in, the inline version would be a better choice.

1 Like