Hi,

Seems fine to me ! Nothing to worry about -:)
The FBI (Fake Button Investigators) won't be alerted ...

Another way to do the same :

\define _title() $(currentTiddler)$-thumbnails
\define _text() <<thumbnails $(currentTiddler)$>>
\define actions()
<$action-setfield $tiddler=<<_title>> text=<<_text>>/>
<$action-navigate $to=<<_title>> />
\end

<$button actions=<<actions>>>Thumbnails2
</$button>



Regards

FrD

Le dimanche 5 août 2018 19:17:00 UTC+2, Mohammad a écrit :
>
>
> Problem: 
>
> I.  I want a button to create a tiddler put some text inside it and 
> navigate to it in view mode NOT edit mode
> II. If the tiddler is already exists, I want to navigate to tiddler and 
> not create it again or create a new one with a numerical counter at the end 
> (don't want to do what action create tiddler does)
>
>
> So, I did like below:
>
> \define _title() $(currentTiddler)$-thumbnails
> \define _text() <<thumbnails $(currentTiddler)$>>
>
> <$button set=<<_title>> setTo=<<_text>> >Thumbnails
> <$action-navigate $to=<<_title>> />
> </$button>
>
>
>
> This button create a tiddler with the title of current tiddler with 
> -thumbnails suffix and put this text <<thumbnails tidname>> inside it and 
> then navigate to it!
>
> Is this legal or illegal?
>
> Actually I used ilegally from set/setTo parameters in button widget to 
> create a new tiddler and if it exists use and navigate to it!
>
>
>
> *Mohammad*
>

-- 
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/727585a7-4fc0-4902-be7e-db8f62cd512e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to