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/df613c0c-8d7a-46c8-8a92-8c5707db58ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.