Jeremy, thanks! This is helpful code.
All, How would I add an additional tag to the tiddler created with this
code: {{||$:/core/ui/Buttons/new-here}}?
Or, more specifically, how would I do a "new here" with an additional tag
of my choosing?
I've started with a macro, but it still has two buttons, and still doesn't
pass the title of the tiddler as a tag:
\define newHereTagged($tag$)
<$set name="myTitle" value={{!!title}}>
<$button>
<$action-sendmessage $message="tm-new-tiddler" title="New Comment"
tags=$tag$ />
1
</$button>
<$button>
<$action-listops $tiddler="New Comment" $field="tags"
$subfilter=<<myTitle>>/>
2
</$button>
</$set>
\end
Any thoughts, much appreciated!
//steve.
On Friday, May 6, 2016 at 6:10:39 AM UTC-4, Jeremy Ruston wrote:
>
> Hi Erik
>
> There’s a “New here” button under the “More” down-arrow at the top right
> of a tiddler that creates a new tiddler tagged with the title of the
> current tiddler. Does that do what you want?
>
> To include the button elsewhere in the body of a tiddler, try this:
>
> {{||$:/core/ui/Buttons/new-here}}
>
> Best wishes
>
> Jeremy.
>
> On 6 May 2016, at 10:57, Erik Homann <[email protected] <javascript:>>
> wrote:
>
> Hello,
>
> I would like to create a button in my tiddlers that automatically creates
> a new tiddler with the title of my origin-tiddler as a tag.
>
> This is what I have so far:
>
> <$set name="myTag" value=<<storyTiddler>>>
> <$button>
>
> <$action-sendmessage $message="tm-new-tiddler" title="This is newly
> created tiddler" tag=<<myTag>> text=<<now "Today is DDth, MMM YYYY">>/>
> Neue Besprechungsnotiz
>
> </$button>
> </$set>
>
> My problem is, that the title of my storyTiddler is space separated and
> therefore my newly created tiddler has two tags and not one tag. I hope you
> can unterstand my problem and can give me a hint.
> Thank you very much in advance!
>
> Erik
>
> --
> 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 [email protected] <javascript:>.
> To post to this group, send email to [email protected]
> <javascript:>.
> 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/57f77477-101e-4f4e-90fe-09b48f7303c9%40googlegroups.com
>
> <https://groups.google.com/d/msgid/tiddlywiki/57f77477-101e-4f4e-90fe-09b48f7303c9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
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/d3a463a7-8a81-4c28-adb9-628bb0602e5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.