[TW5] Sort of mobile app like menus (and moving forward and backward through the tag structure)

73 views
Skip to first unread message

Jed Carty

unread,
Apr 18, 2015, 12:10:05 AM4/18/15
to tiddl...@googlegroups.com
Inspired by these two threads I have been working on some things for tiddlywiki that act like menus in mobile apps. I have one of the types of menus mostly working, there is a demo of it here.

Some stuff:
The menu 'remembers' how you got to where you are in it, so you can navigate backwards to retrace your steps
The menu can be built to an arbitrary depth
It uses the same sort of tagging hierarchy as the table of contents macros
Getting the template it uses to work may have broken my brain. I went from the simple example from before with 5 or 6 tiddlers needed to make it work, to a working version of what is there now with about 20 tidders needed, to 2 relatively short tidders needed now. It is 60 lines of wikitext total and despite the fact that I just spent the last few hours making it I don't think I could tell you how it works. This isn't really relevant to anything I just thought I would share.

Someone (or possibly multiple people? I am not sure) had asked about a way to navigate backwards through a table of contents following the same path you took forward. Being able to do this is an accidental side effect of how I made everything else work. It may not be exactly what was wanted, but I never did get the requirements for whatever the request was about.

I am probably going to be working on this more tonight, so things may change soon.

Jed Carty

unread,
Apr 18, 2015, 1:21:08 AM4/18/15
to tiddl...@googlegroups.com
Now it is the MakeMenu macro, you give it a root tag and a name and you can have as many of them as you want. It is all in the Menu Macro tiddler. More explanation is on the demo site. I will probably add some configuration options to change things like font size and the icons next to the menu options.

Jed Carty

unread,
Apr 18, 2015, 2:06:30 AM4/18/15
to tiddl...@googlegroups.com
And in the last update for the night, I have added macros for two TOC versions using this type of menu. Now it is time to go to bed.

Jan Johannpeter

unread,
Apr 18, 2015, 6:09:03 PM4/18/15
to tiddl...@googlegroups.com
Hi Jed,
Very interesting approach,  I hope I will manage to to something comparable in TWC because  I can't change to TW5 for now.
Jan


HAm 18.04.2015 um 08:06 schrieb Jed Carty:
And in the last update for the night, I have added macros for two TOC versions using this type of menu. Now it is time to go to bed.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3ccdcdb9-0cde-4ad6-8ac6-d6eed44aab91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages