Try this:
http://devpad.tiddlyspot.com/#DcTableOfContentsPlugin
-- F.
Take a look at [[StyleSheetTableOfContents]]*; you probably just need to
replace ".ToC" with ".dcTOC" and ".ToC ol" with ".dcTOC ul".
-- F.
Glad it works.
However, please respond to the groups instead of to me directly, so any
progress is visible to everyone.
> I also added the "Tables of Content" text in a very crude way. i used:
> createTiddlyButton [...] I could use createTiddlyText for it, but I
> don't know how. Could you give an example.
Well, createTiddlyText takes two arguments; parent element and text:
createTiddlyText(c, "Table of Contents");
N.B.:
When modifying a plugin, you should change the metadata (version number,
possibly also name and author/contributors) to avoid confusion later on.
For future reference, coding-related questions are best discussed on the
developers group:
http://groups.google.com/group/TiddlyWikiDev/
> I currently use list-style-type: decimal; on the css of .dcTOC ul to
> create a nice numbered list. However, the subitems are numbers too.
> How can I make the subitems use a list type such as lower-alpha
> (a,b,c,d)? The subitems under that can be numbers again.
Use descendant selectors*:
ul { ... } /* level 1 */
ul ul { ... } /* level 2 */
ul ul ul { ... } /* level 3 */
...
-- F.