I'm trying to understand the comment code plugin at
https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/comments

So I've been cutting and pasting trying to create a minimal example 

I'm now down to two tiddlers:

One is a test tiddler which contains
this:

<$button actions={{CommentButtonActions}}>
  Press Me To add a comment
</$button>

Then CommentButtonActions contains this:

<$action-createtiddler
     $basetitle = "My                 Comment"
      text="yes"/>

When I click on the button a tiddler called

   [[My Comment]] is created

If I click again a tiddler called

   [[My Comment]] 1 is created

My understanding of the createtiddler was that $basetitle was the
tiddler name - but somehow the (deliberate) blanks in the string
got squashed into a single blank some extra square brackets "[[" and
"]]" appeared by magic and a sequence number got appended.

The documentation of "actions" in $button says that actions is a string ...
so I guess it's my own fault for saying actions = {{...}} -- but this does
work in the comments example at GitHub -- the problem is that I haven't a 
clue
what it means.

So can anybody enlighten me?

Supplementary question. When I make my first button and pressed it nothing 
happened - I'd expected some code to be executed - how do I debug this?


Cheers

/Joe

-- 
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/ec42c186-4f08-46bb-95a2-204b1970e06d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to