Creating/updating a new Tiddler with with text the title of the current one

68 views
Skip to first unread message

Tony K

unread,
Apr 30, 2020, 6:42:52 AM4/30/20
to TiddlyWiki
It shld be very basic but i can't do it 

I want to do 
1. generate the link of a state tiddler
2. fill it with the title of the current tiddler
3. without "clicking" a botton (on load??)


\define getStateName()
    $
:/temp/TiddlerRef{{!!title}}
\end

Shld Generate the StateTiddler Name ??

<$action-setfield $tiddler=<<getStateName>> text={!!Title}}/>

it is not working 

can you please help ?

Saq Imtiaz

unread,
Apr 30, 2020, 7:07:57 AM4/30/20
to TiddlyWiki
\define getStateName()
    $
:/temp/TiddlerRef$(currentTiddler)$
\end

Macros can only perform text substitution for parameters and variables. 

Tony K

unread,
Apr 30, 2020, 7:11:04 AM4/30/20
to TiddlyWiki
Hello Saq

how to call it without clicking a button?

Saq Imtiaz

unread,
Apr 30, 2020, 7:13:33 AM4/30/20
to TiddlyWiki
action widgets cannot be called without some user input, e.g. a button or checkbox etc. Perhaps describe in more detail what you are trying to achieve.
Message has been deleted

Tony K

unread,
Apr 30, 2020, 7:33:15 AM4/30/20
to TiddlyWiki
ok i did it with a button (still testing) but it is switching to the newly generated tiddler

all i want is create a tiddler with the new title and fill it with the title of the currenet tiddler to use it for search

Mark S.

unread,
Apr 30, 2020, 10:28:02 AM4/30/20
to TiddlyWiki
It might help to explain what you are trying to accomplish. Why do you want to transfer the title to a text field for searching? You can already search titles directly??

TonyM

unread,
Apr 30, 2020, 8:30:18 PM4/30/20
to TiddlyWiki
Tony K

I can give more details but if you make your own new tiddler button you can just use  text=<<currentTiddler>> to populate the text field with the currentTiddler title.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages