This example worked for me, but I think it may need to have the inner 
<$set> changed to another <$list>. 

<$set name=slidetag value="myslide">
<$list filter="[tag<slidetag>!nsort<slidetag>]" >
<$set name="slidenumber" filter="[all[current]get<slidetag>]">
<<slidenumber>><br/>
</$set>
</$list>
</$set>


The main thing is, that you needed the "get" operator, not the field 
operator. The field operator filters by a field's contents. The "get" 
operator returns the value of a field.

Good luck!
-- Mark
On Wednesday, January 24, 2018 at 9:27:34 AM UTC-8, Steven Schneider wrote:
>
> Hi folks,
>
> I've written a macro that identifies and presents tiddlers as slides in a 
> slideshow with this: 
>
> <<punchshow2 "welcome-to-class">>
>
> My macro sets variable slidetag as follows:
> <$set name=slidetag value="""$slidetag$""">
>
>
> Tiddlers to be included in the slideshow are tagged with the name of the 
> show (example: "welcome-to-class") and have a field of the same name 
> (example: welcome-to-class) with value = 1 (or 2, etc.)
>
> I want to dynamically set the bgcolor of the tiddlers based on slidenumber.
>
> How do I reference a field that is defined through transclusion? In the 
> code below, I'm trying to get the value of the field <<slidetag>> into a 
> variable <<slidenumber>>
>
> <$list filter="[tag<slidetag>!nsort<slidetag>]" >
> <$set name="slidenumber" filter="[all[current]field<slidetag>]">
> ...
> doesn't work.
>
> Suggestions?
>
> Thanks, //steve.
>
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/4048b728-422e-475f-a130-4fcbe6778fd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to