Hey, thanks. I (1) resaved my tiddlyspot, so this code is in the default 
tiddler and (2) made the changes mat suggested. But I am still not able to 
transclude the value of a field into the name of a tiddler. 

in these lines


<<makeTiddlerName>>
<$action-setfield $tiddler=<<makeTiddlerName>> field-name=<<this-field>> 
field-value=<<this-value>> role="field-value" orig-tag="schedule-elements"/>
<$action-navigate $to=<<makeTiddlerName>>/>

<<makeTiddlerName>> , which is \define makeTiddlerName() 
$(this-field)$-$(this-value)$, works on its own as <<makeTiddlerName>> but 
doesn't work as a transcluded link in $action-setfield or $action-navigate


Here's all the revised code

\define getFieldValue() {{!!$(this-field)$}}

\define makeTiddlerName() $(this-field)$-$(this-value)$

\define show-field(this-field)
this-field=$this-field$<br><hr>
<$vars this-field=$this-field$ >
<$list filter="[tag[schedule-elements]each<this-field>sort<this-field>]">
0 currentTiddler: <$link><<currentTiddler>></$link><br>
<$set name=this-value value=<<getFieldValue>>>
1 this-field: <<this-field>><br>
2 this-value: <<this-value>><br>
3 makeTiddlerName: <<makeTiddlerName>><br>
4 <$button>
<<makeTiddlerName>>
<$action-setfield $tiddler=<<makeTiddlerName>> field-name=<<this-field>> 
field-value=<<this-value>> role="field-value" orig-tag="schedule-elements"/>
<$action-navigate $to=<<makeTiddlerName>>/>
</$button><hr>
\end

<$macrocall $name="show-field" this-field="credits"/>


On Monday, July 24, 2017 at 10:07:28 PM UTC-4, Mat wrote:
>
> Hi Steve! 
> That doesn't look correct to me;
>
> \define show-field($this-field$)
>
> what's this?
>
> <$list 
> filter="[tag[schedule-elements]each[$this-field$]sort[$this-field$]]">
>
>
> Should probably not be empty rows there and the macro parameter should 
> probably not be with dollars. 
>
>
> <:-)
>

-- 
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/0e17788b-e5e5-40dc-80f5-b08c5e25df2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to