Thanks Eric,
As you can see in my example the name of this tiddler I am testing for is
"$(currentTiddler)$
- $type$"
Can you show me how to specifiy this in the filter, because this is where I
still get it wrong.
Thanks in Advance
On Friday, August 4, 2017 at 2:26:40 PM UTC+10, Eric Shulman wrote:
>
> On Thursday, August 3, 2017 at 8:35:19 PM UTC-7, TonyM wrote:
>>
>> I would be greatful for some guidence on how to Hide or Show Button when
>> tiddler exists/or not
>> I have some buttons, defined in macros, which I call and use a parameter
>> and currentTiddler to name a second tiddler on which I wish to act.
>>
>> *My Question*
>> How best can I display the result of such macro ie the button, only if
>> the tiddler does not yet exist, and in other cases only if the named
>> tiddler exists?
>>
>
> You can use a <$list> widget with the "is[tiddler]" or "is[missing]"
> filter to test if a tiddler exists or not. Something like this:
>
> \define editsubtiddler(type)
> <$list filter="[all[current]is[tiddler]]">
> <$button tooltip="Edit content in Separate tiddler">
> <$action-sendmessage $message="tm-edit-tiddler"
> $param="$(currentTiddler)$
> - $type$" />
> {{$:/core/images/edit-button}}
> </$button>
> </$list>
> \end
>
> enjoy,
>
> -e
> Eric Shulman
> TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
> InsideTiddlyWiki: The Missing Manuals
>
--
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 [email protected].
To post to this group, send email to [email protected].
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/e4ddfcd3-6a6c-423b-bee2-dc51a8531f7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.