Re: [tw5] Re: How to edit menus

2018-04-27 Thread BurningTreeC
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 filter="[[$:/state/storyfilter]!is[missing]]">

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

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






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

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/9fab3cc5-7b15-4c90-9963-28c3f86f5236%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: How to edit menus

2018-04-27 Thread BurningTreeC
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!!


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/73f12e83-2614-49e4-95a0-06c3e5da9def%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: How to edit menus

2018-04-27 Thread BurningTreeC

>
> 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 filter="[[$:/state/storyfilter]!is[missing]]">

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

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





... 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

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

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


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/b40db6bc-0eb0-4a16-be57-8eb8d04d5f45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: How to edit menus

2018-04-27 Thread Morgaine O'Herne
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

On Wed, Apr 25, 2018 at 11:49 AM, BurningTreeC  wrote:

> 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
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@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/eff6a9e9-08b0-4520-bbf9-4944159fb5f8%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/CABVjSOFoNsGSM_Cuz8eRvYzoHkwVLSjH_iWNynaEzg_YW029%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: How to edit menus

2018-04-25 Thread BurningTreeC
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

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/eff6a9e9-08b0-4520-bbf9-4944159fb5f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: How to edit menus

2018-04-25 Thread Morgaine O'Herne
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

On Wed, Apr 25, 2018 at 1:32 AM, Ton Gerner  wrote:

> 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
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@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.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/CABVjSOHn9H2xVYFhSf59j_4DXi1%2BaALjcmV5KnXqZRbWxshnRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to edit menus

2018-04-25 Thread Ton Gerner
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


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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.


[tw5] Re: How to edit menus

2018-04-24 Thread Morgaine O'Herne
Basically I want it to do this: https://haltu.github.io/muuri/

On Tuesday, April 24, 2018 at 5:52:00 PM UTC-6, Morgaine O'Herne wrote:
>
> 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
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/8c85e329-44b8-4c29-8fd8-86aab1d603df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.