[tw] Re: Reveal content based on field content

2016-12-16 Thread Tobias Beer
Hi Hans & Danielo & Jed,


I generall prefer to "reveal" stuff using the list widget, if possible... 
since that will not create any superfluous html wrapper elements where you 
may not need or want them. Plus, it's even shorter.

So, I would do:

<$list filter="[bob[eddie]]">
Hi!


Instead of:

<$reveal type='match' state='!!bob' text='eddie'>
Hi!


Best wishes,

Tobias.

-- 
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/1ce815bc-e064-41a2-aec5-f7e2bb1f9c10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Reveal content based on field content

2016-12-13 Thread Jed Carty
What a text reference is isn't really explained anywhere that I have seen. 
I had to look at the code before I realised what was going on. The only 
time you see it in most  cases is as a transclusion using {{ and }}. I 
think this goes along with the differences between {, [ and < inside 
filters as one of the meaningful but non-obvious nuances in wikitext.

-- 
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/3ac2b9e3-deff-4abc-9cdc-e14a7e6dbcfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Reveal content based on field content

2016-12-13 Thread Danielo Rodríguez


El martes, 13 de diciembre de 2016, 21:12:07 (UTC+1), HansWobbe escribió:
>
> Jed:
>
> Thank you very much for this  elegant little snippet.  In spite of 
> thinking of myself as a bit of a power User, I am always amazed at just how 
> much I haven't thought of, or have yet to realize.  This is a nest example 
> that is a good reminder for me.
>
> Thanks again for all of your contributions to this group.
>
> Hans
>

I have to subscribe every word that Hans said. I consider myself a power 
user and I'm still getting sucked on this (kid of) basic problems.
Thank you very much.

-- 
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/00af1bb8-d468-45a4-99b4-f0306f4e9319%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Reveal content based on field content

2016-12-13 Thread HansWobbe
Jed:

Thank you very much for this  elegant little snippet.  In spite of thinking 
of myself as a bit of a power User, I am always amazed at just how much I 
haven't thought of, or have yet to realize.  This is a nest example that is 
a good reminder for me.

Thanks again for all of your contributions to this group.

Hans


On Tuesday, December 13, 2016 at 1:26:33 PM UTC-5, Jed Carty wrote:
>
> This works on tiddlywiki.com:
>
> <$reveal type='match' state='!!bob' text='eddie'>
> Hi!
> 
>
> If you put that in a tiddler it won't show anything unless the tiddler has 
> a field called 'bob' with the content 'eddie'
>

-- 
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/57623fed-e844-45d0-9fe2-b15e67202acc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Reveal content based on field content

2016-12-13 Thread Jed Carty
This works on tiddlywiki.com:

<$reveal type='match' state='!!bob' text='eddie'>
Hi!


If you put that in a tiddler it won't show anything unless the tiddler has 
a field called 'bob' with the content 'eddie'

-- 
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/422d312c-5df7-4b5d-a49e-4dd81aca953f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.