Generate numbered list using list-tagged-draggable

63 views
Skip to first unread message

Pin Tail

unread,
Feb 20, 2019, 5:06:07 PM2/20/19
to TiddlyWiki
Is there any way to generate a numbered list using the list-tagged-draggable macro? The similar list-links-draggable can generate numbered lists by setting the type parameter to "ol", but list-tagged-draggable doesn't acccept this parameter.

TonyM

unread,
Feb 20, 2019, 5:20:53 PM2/20/19
to TiddlyWiki
Pin,

Since the ol and the html tag <li></li> are generated on display this will need to be regenerated on the fly at display time.

Doing an advanced search list-tagged-draggable on tiddlywiki.com then the shadows tab, finds $:/core/macros/list

Which contains the definition of both macros. I suggest you answer lies therein. Copy out the relevant macros and rename them placed in another tiddler tagged as a macro and modify it as needed. Ony copy the macros you want to modify because you new macro can use the existing ones as needed.

Regards
Tony

S. S.

unread,
Feb 20, 2019, 8:59:47 PM2/20/19
to TiddlyWiki
Tony,

You are right! The answer does lie in there.
Interestingly the list-tagged-draggable macro omits the type and subtype parameter.
I can't see much harm for including those.
It only took a little modification, so I tried it out. Seems to work fine so I've attached it here.
Even though I believe it cannot do any damage, and you can always delete it when done using it ...
Please BACKUP your TiddlyWiki before using it!
I think it deserves to be part of the normal function of the macro, so I will put in that request.

Thanks for bringing it up Pin Tail.
macros_list-tagged-draggable_modified.tid

Pin Tail

unread,
Feb 20, 2019, 11:13:45 PM2/20/19
to TiddlyWiki
Thanks for your help!

TonyM

unread,
Feb 20, 2019, 11:42:18 PM2/20/19
to TiddlyWiki
S S Thanks for helping "Pin", good work

Tony

S. S.

unread,
Feb 21, 2019, 12:01:30 AM2/21/19
to TiddlyWiki

Submitted a desperate plea for including these parameters in the list-tagged-draggable macro.

You can read it here: list-tagged-draggable is upset

Regards.
Reply all
Reply to author
Forward
0 new messages