Hi Sam

> I see in the documentation that the new tiddler message can take a
paramObject that is a hashmap of fields the new tiddler can have. What does
the hashmap look like, and how do I add a button to the view template that
will create this tiddler with the current tiddler as a tag (like the create
here button).

>From wikitext you can specify the fields of the hashmap as attributes of
the <$action-sendmessage> widget. For example:

<$button>
<$action-sendmessage $message="tm-new-tiddler" my-field="123" modifier="Joe
Bloggs"/>
Demo
</$button>

Best wishes

Jeremy.


On Fri, Apr 24, 2015 at 11:50 PM, Jed Carty <[email protected]> wrote:

> Unfortunately my answer to the first part of your question is 'I don't
> know', but I do have an alternate solution.
>
> I have never figured out how to use the new tiddler message like that, I
> have always used the action-setfield widget instead.
>
> Because my brain doesn't want to focus on actual work today, I wrote a bit
> about how to make the button here
> <http://inmysocks.tiddlyspot.com/#How%20to%20make%20a%20button%20like%20the%20%27New%20Here%27%20button>.
> It kinda rambles a bit, but it should cover what is needed.
>
> If anyone can tell us how to use the paramObject as an input to the
> tm-new-tiddler message that would be awesome.
>
> --
> 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 http://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/6a34aae6-b231-467d-992a-7e542e4fe0a6%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/6a34aae6-b231-467d-992a-7e542e4fe0a6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJZ2U4CZC61eN4w2ODEc3r-seOo0i0JL2coD4iZtPC6RBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to