[TW5] Strange (?) behaviour with tm-add-tag

58 views
Skip to first unread message

FrD

unread,
Aug 2, 2016, 6:07:24 AM8/2/16
to TiddlyWiki
Hi,

I was trying to silently create a tiddler with a given tag, and it didn't work well.

Until I found the solution by Jed Carty with the action -setfield widget (https://groups.google.com/d/msg/tiddlywiki/-_Bsj8WO58Q/xoZiITK5pO4J). Thanks !

Back to my point.
What I tried (on tiddmywiki.com)

<$fieldmangler tiddler="newTestTiddler">
<$button message="tm-add-tag" param="tagA">
<$link to="newTestTiddler">to newTestTiddler
<$action-navigate $to="newTestTiddler"/>
</$link>
</$button>
</$fieldmangler>

The buttons looks like a non existing tiddlylink (which is right).

When I click, the tiddler newTestTiddler appears below the current tiddler.
BUT it does not show up in the recent list (just like the navigation to a non existing tiddler).
AND the button looks like an existing tiddlylink.

Then I close the tiddler.

Then I click again.

This time the tiddler appears below, AND in the recent list. It is created.

I don't know whether yhis behaviour is right or not. I'm just reporting.

FrD

Jed Carty

unread,
Aug 2, 2016, 7:32:35 AM8/2/16
to TiddlyWiki
The tiddlers created using setfield are made without created or modified fields. When you open a toddler and save it the fields are added. I think if you split the fields between two setfield widgets it may work.

FrD

unread,
Aug 2, 2016, 8:13:31 AM8/2/16
to TiddlyWiki
Hi Jed,

I'm using your solution (dating back to 28/03/2015) and it works well.

I was just reporting about something that looks strange to me : the difference between the two cliks on the button. The first  one does nothing (or almost nothing) and it seems to me to be the correct behaviour. The second click does create a tiddler.
So I guess something changed between the two clicks. I don't know if it's the expected behaviour.

FrD

Jed Carty

unread,
Aug 2, 2016, 9:12:56 AM8/2/16
to TiddlyWiki
Putting that button on tiddlyspot.com just opens up the non-existent tiddler most of the time and sometimes creates a new tiddler. It doesn't seem to be consistent, I don't know why.
Reply all
Reply to author
Forward
0 new messages