How to edit menus

156 views
Skip to first unread message

Morgaine O'Herne

unread,
Apr 24, 2018, 7:52:00 PM4/24/18
to TiddlyWiki
I've looked all over and can't find the answer to this, so It's probably so blatantly obvious that there's no need to spell it out.

I have Ton Gerner's plugins for Top Menu and Top Left Menu.  There is a 'tagpill1' and a 'tagpill2' at the top left of the page. How do I make these into a normal menu?
Specifically, I want 5 tabs, with each one opening the tiddlers with a given tag, and closing the rest, and one to make it show all of them.
I am using Muuri.

Any help would be greatly appreciated. 
Morgaine

Morgaine O'Herne

unread,
Apr 25, 2018, 12:58:46 AM4/25/18
to TiddlyWiki
Basically I want it to do this: https://haltu.github.io/muuri/

Ton Gerner

unread,
Apr 25, 2018, 3:32:50 AM4/25/18
to TiddlyWiki
Hi Morgaine,

See the Help of both plugins:

1) Control panel > Plugins > tab Plugins
2) Click '>' at the plugin
3) Click the tab Help and read that.

Extended information can be found at:

http://tw5topmenu.tiddlyspot.com/
http://tw5topleft.tiddlyspot.com/

Hope that helps,

Ton


Morgaine O'Herne

unread,
Apr 25, 2018, 1:12:46 PM4/25/18
to tiddl...@googlegroups.com
Thanks, that did help. I have my tagpills all labelled.
 Now what I want to do (if you saw my second comment), is make all the items with a tagpill's tag come up, and everything else go away. Like this demo: https://haltu.github.io/muuri/
How do I do that?

Much thanks in advance,
Morgaine

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/8RBrollzdH8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d9d3a4d0-3ee1-45b3-a083-c8260297465f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

BurningTreeC

unread,
Apr 25, 2018, 1:49:44 PM4/25/18
to TiddlyWiki
Hi Morgaine, and welcome here :)

The Muuri plugin originally comes from Uwe Stuehler, but I made the version you find on muritest.tiddlyspot.com or tiddlytouch.tiddlyspot.com, the first is the demo page, the latter is the plugin page...

I believe you intend the filtering function, is that right? Selecting only some tiddlers and hiding the others?

Large parts of that are handled by the muuri plugin and not by tiddlywiki itself, though it's possible to do with wikitext only, too, just not exactly like shown on haltu.github.io/muuri


Look at http://tiddlytouch.tiddlyspot.com - in the sidebar I've enabled the search field to filter the tiddlers using the search input... If you insert a search expression in the search field and then click the button that looks kinda like an antenna, the tiddlers get filtered and only the ones which match the search are shown

Are you looking for a way to implement that on your page using a dropdown or similar?


all the best,
Simon

Morgaine O'Herne

unread,
Apr 27, 2018, 4:23:12 AM4/27/18
to tiddl...@googlegroups.com
Hi Simon, Thank you for responding,
I'm building a game website and I wanted tabs at the top to filter wikis by subject.  In most 'standard' websites there are menu items that will take you to a given page or section of the site; I want those menu items to  select which tiddlers  appear, without going to another page.. Pretty much exactly like http://haltu.github.io/muuri does it, except by subject rather than color. The menu items would be Players, Characters, The Game Master, The Game World, and Mechanics.  This very tentative site is at https://thpmefsl4nj2xg7nynj04q-on.drv.tw/Harn%20Game%20Website/index.html

Again, thanks
Morgaine

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/8RBrollzdH8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

BurningTreeC

unread,
Apr 27, 2018, 7:25:31 AM4/27/18
to TiddlyWiki
Hi Simon, Thank you for responding,
I'm building a game website and I wanted tabs at the top to filter wikis by subject.  In most 'standard' websites there are menu items that will take you to a given page or section of the site; I want those menu items to  select which tiddlers  appear, without going to another page.. Pretty much exactly like http://haltu.github.io/muuri does it, except by subject rather than color. The menu items would be Players, Characters, The Game Master, The Game World, and Mechanics.  This very tentative site is at https://thpmefsl4nj2xg7nynj04q-on.drv.tw/Harn%20Game%20Website/index.html


that's a cool idea :) !

yes it's doable - my first idea would be modifying the story list in the tiddler $:/core/ui/PageTemplate/story
there's a line <$list filter="[list[$:/StoryList]" ... />. That filter can be extended, you could make it to [list[$:/StoryList]tag[Characters]] and the story would show only Tiddlers tagged with "Characters" - more advanced filtering would also be possible, by field, by title - how you want

Now if you create some dropdown buttons on top of your page that let you select "Players" "Characters" ... those buttons could set the text of a tiddler, say - "$:/state/storyfilter", to the desired filter like tag[Players]

if you modify the line in $:/core/ui/PageTemplate/story to:

<$list filter="[[$:/state/storyfilter]is[missing]]">

<$list filter="[list[$:/StoryList]]" ... here the rest of what's already there/>

</$list>

<$list filter="[[$:/state/storyfilter]!is[missing]]">

<$vars myFilter={{$:/state/storyfilter}}>

<$list filter="[list[$:/StoryList]<myFilter>]" ... here the rest of what's already there/>

</$vars>

</$list>

... then the story gets filtered by the filter in $:/state/storyfilter

the buttons on top of the page must make sure that a correct filter lands in $:/state/storyfilter

such a button would be:

<$button set="$:/state/storyfilter" setTo="tag[Players]">Players</$button>

and there should be something to delete the $:/state/storyfilter tiddler like:

<$button><$action-deletetiddler $tiddler="$:/state/storyfilter"/>Full Story</$button>


BurningTreeC

unread,
Apr 27, 2018, 2:14:14 PM4/27/18
to TiddlyWiki
Morgaine, I'm actually trying what I proposed - don't do it like that!

I'm looking for a correct solution, this one makes big trouble!!


BurningTreeC

unread,
Apr 27, 2018, 2:25:06 PM4/27/18
to TiddlyWiki
Ok, now I have a solution:

<$list filter="[[$:/state/storyfilter]is[missing]]">

<$list filter="[list[$:/StoryList]]" ... here the rest of what's already there/>

</$list>

<$list filter="[[$:/state/storyfilter]!is[missing]]">

<$vars myFilter={{$:/state/storyfilter}}>

<$list filter=<<storyFilter>> ... here the rest of what's already there/>

</$vars>

</$list>


On the very top of the $:/core/ui/PageTemplate/story tiddler put these lines:

\define storyFilter()
[list[$:/StoryList]$(myFilter)$]
\end


that's tested over here, it works for me
Reply all
Reply to author
Forward
0 new messages