Hi Mohammad,
I don't see anywhere that a widget is passed as a parameter to another
widget. I guess you mean:
actions=<<create-commentTid>>
because create-commentTid CONTAINS widgets. But wrapping it in a macro
first causes it to be rendered before being passed. I guess I should say
that a widget attribute cannot use another widget as input DIRECTLY.
Before we had the Wikify widget, my main trick was to have a series of
macros, each of which rendered the output of the prior macro. It made the
code very hard to read and was easy to get wrong.
-- Mark
On Friday, January 11, 2019 at 1:00:30 AM UTC-8, Mohammad wrote:
>
> Mark one more question:
>
> \define conc() comment on {{!!title}}
>
> \define create-commentTid()
> <$wikify name="ctitle" text=<<conc>> >
> <$action-createtiddler
> $basetitle=<<ctitle>>
> $savetitle="$:/temp/commentName"
> relationship="comment"
> parent=<<currentTiddler>>
> />
> <$action-navigate
> $to= {{$:/temp/commentName}}
> />
> </$wikify>
> \end
>
> <$button actions=<<create-commentTid>> >
> Click to make a comment
> </$button>
>
>
> The above code works in Tiddlywiki.com. The idea borrowed from Joe in this
> post: https://groups.google.com/d/msg/tiddlywiki/BwE0KM_sBJc/AV58mzXnCAAJ
>
> Why this code works while a widget is passed as parameter attributes to
> another widget?
>
> -- Mohammad
>
--
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/50d27aca-dbdb-4463-b55f-d0b1795a5613%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.