On Friday, May 6, 2016 at 10:21:43 AM UTC-7, Stephen Kimmel wrote:
>
> What I want to do is produce a list of fields and values for a tiddler 
> that isn't the current tiddler but whose name is contained in a temporary 
> tiddler. 
>
> Given that this code produces a list of fields and values for the current 
> tiddler
>
> <dl>
> <$list filter="[is[current]fields[]] -[[text]]" variable="fieldname">
> <dt><$text text=<<fieldname>>/></dt>
> <dd><$view field=<<fieldname>>/></dd>
> </$list>
> </dl>
>
> can someone explain to me what it takes to produce a similar result?
>

Method #1:
* replace "is[current]" with "title{$:/temp/old}"
* add tiddler={{$:/temp/old}} to the $view widget

<dl>
<$list filter="[title{$:/temp/old}fields[]] -[[text]]" variable="fieldname">
<dt><$text text=<<fieldname>>/></dt>
<dd><$view tiddler={{$:/temp/old}} field=<<fieldname>>/></dd>
</$list>
</dl>

Method #2:
* set the currentTiddler context to the desired tiddler title by 
surrounding the code with <$tiddler tiddler={{$:/temp/old}}>

<$tiddler tiddler={{$:/temp/old}}>
<dl>
<$list filter="[is[current]fields[]] -[[text]]" variable="fieldname">
<dt><$text text=<<fieldname>>/></dt>
<dd><$view field=<<fieldname>>/></dd>
</$list>
</dl>
</$tiddler>

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
InsideTiddlyWiki: The Missing Manuals

-- 
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/b9211689-bfa3-4c4b-b929-df885cf5265b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to