Thanks, Jed. I knew it was state. Your approach worked perfectly for my
class today!
(For those interested: I have students submit a short reflection on the
days reading via a google form. I use Jeremy's xlsx utility to import
contents of the form submissions as tiddlers, and can then have students
writing in the course wiki for the discussion portion of the class. The
wiki is served under updog, so it is fast and painless for me, and for my
students!)
On Tuesday, January 24, 2017 at 10:40:10 AM UTC-5, Jed Carty wrote:
>
> It is because the stretch macro uses one of the raw inputs an the state
> and each of your items has the same raw input even though it is evaluated
> later to be different. One possible way to get around this is using the
> variable and macro approach like this:
>
> \define OhNoesItsAMacro()
> <$macrocall $name=stretch label="""$(LABEL)$""" rest="""$(REST)$"""
> content="""$(TEXT)$"""/>
> \end
>
>
> {{$:/core/ui/Buttons/import}}
> <h2>Submit Reflection</h2>
> <<stretch 'View' 'or <a href={{!!form}} target="_blank">visit</a>' '{{!!
> form-embed}}'>> the form to submit your reflection.
> <h2>Responses</h2>
> Click the buttons to view responses<br><$list
> filter="[tag{!!assignment}tag{!!assignment-type}]">
> <$link>></$link>
> <$vars LABEL={{!!headline}} REST={{!!author}} TEXT={{!!text}}>
> <<OhNoesItsAMacro>>
> </$vars>
> <br>
> </$list>
>
> You may be able to do that in a more compact way, but the problem came
> from the label being {{!!headline}} for each item.
>
--
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/17f294fa-2b32-40e3-90b7-84a30e010859%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.