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 ---.
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
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.
I wanted to share some feedback regarding the DiscoTOC plugin. In most Discourse themes, the TOC sidebar is displayed with an appropriate width, ensuring that long titles are handled gracefully. However, when using the Horizon theme, the sidebar width is noticeably narrow, which causes long titles to break into multiple lines. This limits readability and affects the overall visual consistency of the interface.
Could you please consider investigating this issue specifically for the Horizon theme and explore options to adjust the sidebar’s width for a better presentation of longer titles? I believe addressing this would enhance the user experience for many on the Horizon theme.
Thank you for your hard work and for considering this suggestion.
Subject: dysfonctionnement du composant discoTOC dans la locale persane
Environnement : Forum avec la locale par défaut réglée sur “Persan”.
Composant concerné : discoTOC
Description : Lorsque la locale par défaut du forum est configurée sur “Persan”, le composant discoTOC ne fonctionne pas correctement.
Symptômes spécifiques :
Les éléments UI pour les boutons “Timeline” et “Contents” ne sont pas affichés.
Après qu’un utilisateur a soumis une réponse à un sujet, la vue de la table des matières est automatiquement masquée, la vue de la chronologie est affichée, et aucun élément interactif n’est proposé pour restaurer la vue de la table des matières.
לחצו על כפתור התוכן בעיטור התפריט (הוא מופיע רק כאשר יוצרים נושא רגיל - תגובות והודעות פרטיות מתעלמים)
רווח.
[/הצהרה]
בנוגע להנחיות שלמעלה לשימוש ברכיב discoTOC, יש לי כמה שאלות טכניות להבהרה:
שלב 1 מזכיר כתיבת נושא עם כותרות ושלב 2 מזכיר שימוש בכפתור מסוים. אם אעקוב אחר שלב 1 על ידי מיתרגים את הנושא עם כותרות ב markdown (כגון ##, ###) אך אौन ולא אקח את לחיצה על “כפתור התוכן” בתפריט הכלים (שלב 2), האם רכיב discoTOC עדיין י יצר אוטומטית או יוצג טבלת תוכן מבוססת על הכותרות בלבד? במילים אחרות, האם לחיצה על הכפתור הכרחית לפעילות התקינה של הרכיב, או שהיא סתם טריגר להטמעת רכיב מסוים?
מהו ה תפקיד או הפונקציונליות המדויקת של כפתור ה"תוכן" הממוקם בתפריט הכלים? איך יש להשתמש בו בתוך תהליך עריכת הנושא?
באופן נפרד, נתקלתי בקטע הקוד div data-theme-toc="true"/div. תוכל להסביר את התפקיד המדויק שלו יחד עם discoTOC? מה ה-div הזה שולט בו, ואיך יש ליישם או להגדיר אותו בתוך תוכן הנושא כדי להשפיע על יצירת או הצגת טבלת התוכן?
I’m not sure if this is technical enough, but the component needs both the <div data-theme-toc="true"> </div> and some headings in the post to be able to generate a proper toc.
Without the <div data-theme-toc="true"> </div> inserted the post will simply be a post with headings, and adding that without including any headings will not generate a toc (there’s also a TOC min heading setting in the component, which defaults to 3. So you’d need at least 3 headers in your post to generate a visible toc)
The ‘insert table of contents’ button inserts the <div data-theme-toc="true"> </div> into the post, though you can copy this in or type it manually to the same effect.
Hopefully that helps.
ETA: I’ve just had a gentle nudge reminder that if you’re using the Auto TOC categories and Auto TOC tags component settings then inserting the <div data-theme-toc="true"> </div> isn’t necessary in those cases.
אם אני מנסה ליצור את תוכן העניינים בנושא שנוצר ללא תוכן העניינים, זה לא עובד. האם זה נורמלי? זה נראה שעובד רק אם אני יוצר את הנושא עם תוכן העניינים. עריכת נושא, לא עובדת.
בנושא שיצרתי בהצלחה עם תוכן העניינים, כאשר אני לוחץ על הכותרות בתוכן העניינים, זה לא גולל לכותרת.
זה נראה שזה יוצר את תוכן העניינים רק עבור הכותרות מסוג ##. יש לי כותרות מסוג ###, אבל הן לא מוצגות.
מוזר… כששמרתי את זה, זה לא הופיע, אז אולי הייתי צריך לרענן את הדף? ציפיתי שזה יופיע מיד.
טוב לדעת שזה מופיע עכשיו.
(לשם הבהרה, הצלחתי להוסיף את הטקסט שהוספת בתמונה שלך, אבל ה-TOC לא הופיע בצד ימין).
לגבי שאר הבעיות, זה עובד עכשיו גם כן. אני לא מבין… לך תבין…
האם אתה יודע אם אפשר לבטל את ההתנהגות שבה כותרות המשנה מוסתרות כאשר הכותרת הראשית אינה “בפוקוס”?
אני רוצה שכל הכותרות יהיו גלויות בכל עת, אחרת נראה שיש פחות תוכן ממה שיש בפועל.
אני כבר שמח לדעת שזה עובד כמצופה, אז זו רק פרט שיהיה הקינוח המושלם, אם אפשר להשיג זאת.