[TW5]Struggling to understand tm-remove-field

112 views
Skip to first unread message

Linus Johnsson

unread,
Jun 11, 2015, 10:26:11 AM6/11/15
to tiddl...@googlegroups.com
Dear all,

I have trouble understanding why the button created by the code below does nothing:

<$button message="tm-remove-field" param="some_field">Remove field</$button>

I would expect it to remove some_field from the current tiddler. Am I missing something essential?


Best regards,
Linus

Ton Gerner

unread,
Jun 11, 2015, 10:47:33 AM6/11/15
to tiddl...@googlegroups.com
Hi Linus,

You need to add the fieldmangler widget, see http://tiddlywiki.com/#FieldManglerWidget:FieldManglerWidget :

<$fieldmangler>

<$button message="tm-remove-field" param="some_field">Remove field</$button>
</$fieldmangler>

Cheers,

Ton

Linus Johnsson

unread,
Jun 11, 2015, 3:25:45 PM6/11/15
to tiddl...@googlegroups.com
That works great! Thanks a lot!

Linus

Danielo Rodríguez

unread,
Jun 12, 2015, 4:16:33 PM6/12/15
to tiddl...@googlegroups.com
Actually I don't understand why all the messages works out of the box and this one requires for an extra widget. I know that it is because legacy design, but we should update the behavior,current one is not very intuitive
Reply all
Reply to author
Forward
0 new messages