Solved: How can the title be transcluded to a macro parameter as a wikilink.

56 views
Skip to first unread message

Jan

unread,
Jun 27, 2016, 8:48:44 PM6/27/16
to tiddlyWiki
Hi!
That was a toil...
The esult is quite different from my startingpoint. If anyone is interested...
Voilà:

\define createFilmlist()
<$set name="myFilms" filter="[list[$:/StoryList]tag[Film]]" >
<$button>{{$:/core/images/save-button}} speichern <$action-setfield $tiddler="$(listeneu)$" $field="film" $value=<<myFilms>> tags="clip" text="<<clip>>" clip=""/>
<$action-sendmessage $message="tm-notify" $param="StorySaved"/>
</$button>
</$set>
\end

Titel:<span title="Enter a Name"><$edit-text tiddler="Filmliste" tag="input" field="titel" default="Geben Sie einen Titel ein!"/></span>
<$set name="listeneu" value={{Filmliste!!titel}}>
<<createFilmlist>>
</$set>

cheers jan

Am 27.06.2016 um 16:41 schrieb Jan:
Hello I want to create a button which automatically creates a new tiddler as a child of

<$list filter="[all[current]tag[Film]]">
<$button>
<$action-sendmessage $message="tm-new-tiddler" title="Set a new title!" tags="clip" source={{!!title}} />
Add a new child
</$button>
</$list>

Reply all
Reply to author
Forward
0 new messages