Hi all,
I'm only a few days into using TiddlyWiki, so please pardon my ignorance.
This is what I am trying to do
1. make a drop down list populated dynamically based on tags - I have
been successful in doing this.
2. create a button that when clicked, created a new draft widget with
the a title that has the words chosen in 1 as part of its title (but not
exactly it, it has some words added to what was selected).
This is the macro I have so far:
\define newHereButtonTags()
[[$(currentTiddler)$]]
\end
\define testWhy()
<$view tiddler=<<qualify "select-profile">>>
\end
\define newHereButton()
<$button>
<$action-sendmessage
$message="tm-new-tiddler"
title=<<testWhy>>
tags=<<newHereButtonTags>> />
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/chevron-up}}
</$list>
</$button>
\end
<$select tiddler=<<qualify "select-profile">> default=''>
<$list filter='[sort[title]tag[JustSOmeTags]]'>
<option value=<<currentTiddler>>><$view field='title'/></option>
</$list>
</$select>
<<newHereButton>>
<<testWhy>>
I created the dropdown list, it is correctly populated with the tags
[justsomeTags]
What happens is that when I press the button <<newHereButton>>, it does
indeed create a new draft widget, and it tags it automatically with the
title of the $(currentTiddler)$.
However, for the life of me I can't figure out why the title of the draft
is not getting fetched properly. What I am getting is something like:
<$view tiddler=<<qualify "select-profile">>> as the title.
The ultimate goal is to have the title of the new tiddler to be: " title of
the parent tiddler (the one that has the button)" + appended text based one
what was selected using the selectWidget drop down list.
--
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/4337b19a-4464-4ae6-ab1a-afc6548aba13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.