tm-delete?

70 views
Skip to first unread message

Dave

unread,
Dec 2, 2018, 6:58:03 PM12/2/18
to tiddl...@googlegroups.com
I want to (for some tiddlers) be able to delete them without going into edit mode with something like this:
<$fieldmangler><$list filter="[is[current]has[due]]" variable=null>
  <$button message="tm-delete" tooltip="delete" class="tc-tag-label tc-btn-invisible">
    - delete
  </$button>
</$list></$fieldmangler>

but this doesn't actually work

Is there a way to do this properly?


Mark S.

unread,
Dec 2, 2018, 8:40:04 PM12/2/18
to TiddlyWiki
With the "is[current]" bit, it looks like you're trying to make view template for the button. But since every single tiddler already has a delete button, I'm not sure what the point it.

As a view template, this works:

<$list filter="[is[current]has[due]]">
<$button message="tm-delete-tiddler"  >Delete</$button>
</$list>

Note that the message is "tm-delete-tiddler" and you don't need fieldmangler.

If you're trying instead to make a list of items with the due field and their delete buttons, then something like this should work:

<$list filter="[has[due]]">
<$button message="tm-delete-tiddler"  >Delete <<currentTiddler>></$button><br/>
</$list>


Good luck!
-- Mark

Dave

unread,
Dec 3, 2018, 1:29:41 AM12/3/18
to TiddlyWiki
Thank you Mark! :)
Reply all
Reply to author
Forward
0 new messages