Table of Contents entry not showing expander arrow head

Anyone see this before, some entries in the table of contents tab are not showing the expand sub-list icon despite having sub items.

This is occuring twice, for Forts and Manufacturers, whilst earlier entries correctly show the expand icon.

Wiki: http://cultconv.neocities.org/ArtilleryRegister/test.html

bobj

Your demo wiki is nobbled, so its hard to research.

Sorry @TW_Tones, try now

bobj

Your table of contents uses tags “Forts” and “Manufacturers” (plural), but the individual tiddlers are tagged with “Fort” and “Manufacturer” (singular).

If you want those individual tiddlers to appear in the table of contents tree, then tag them with “Forts” and “Manufacturers”. You can leave the singular tags in place so that directly viewing the “Forts” or “Manufacturers” tiddlers will still show the correct <<list-links>> macro output.

-e

Note to @TW_Tones… to manually bypass the “read-only” view of the online wiki, you can use the browser debugger. Right-click on any tiddler’s “X” (close) button and choose “inspect”. Then, in the debugger, you will see that the other tiddler menu buttons are still present, but are just being hidden. Select one of those hidden buttons and the debuggeer will show you a CSS rule that says button:is (...) { display:none; }. Uncheck the display:none; attribute (or change it to display:inline), and the usual tiddler toolbar buttons will re-appear. You can then edit the tiddlers to see the wikiscript code they contain.

1 Like

I just found that too, however Eric beat me to it.

An alternative approach is to make tags singular, so on a fort (a tiddler representing a particular fort) we indicate it is a fort (with a tag), however on the actual fort tiddler use the caption Forts, so when displayed in a toc or other list that uses captions it reads forts.

I edited this because I previously responded when ill and tired and thought it was terrible.

I like this answer @TW_Tones. It makes more sense to me, an item is a fort but the set is forts.

I didn’t realise that TW must be recalculating the list-links macro and the table of contents sub list as separate calculations.

bobj

Yes, the toc macro is itterating the tag tree, starting with the TableOfContents down and has nothing to do with the text field of the tiddler. We only see the text field when viewing the tiddler in the story at which time it does its job.

Personal view: The list-links and list-links-dragable macros are there to easily and quickly list tiddlers.

However learning to use the $list widget opens up a deepter understanding and level of customisation. Maybe for a dragable list but I tend to drag and drop on the tag pill eg <<tag Fort>>.

As a workaround you can rename your tiddler Manufacturers to Manufacturer (the singular)
and give that one the caption: Manufacturers → So the plural version will be shown in the TOC.

1 Like

thanks @pmario, that is the solution I have adopted. It also addresses a niggling doubt I had regarding the number of entries in an expanded entry in the table of contents and efficient run time. At least this way, the tale of contents entry does not have any expanded entries, just a link to a tiddler with all the expansions and so expansion is only done on a user click.

bobj