Hello,
I want to create multiple Tiddlers in the background, which shall later
on be used for a slideshow. They shall contain text created with a
variant of Thomas` extract Macro
http://tid.li/tw5/numbers.html#%24%3A%2F_telmiger%2Fslice (Here
<<slicetext>>) and have the numbered titles $:temp/Slide/$(number)$.
I would like to extract the text of the $(number)$ 1 to 10 if it has a
slice (<sli1>slicetext</sli1>) marked .
I do not know how to perform an iteration in Wikitext ... and
unfortunately there seems to be something else which is wrong because it
does not work with a number and a given Tiddler instead of variables either.
Here is a link to my experiment:
SlidesNStories.tiddlyspot.com#slidesfromslices:slidesfromslices%20SourceTiddler
\define nextsl() -->defines the Tiddler to extract from
<$list
filter='[list[$:/StoryList]after{$:/HistoryList!!current-tiddler}[search:text[sli1]]'>{{!!title}}</$list>
\end
\define slicetext(number)
<<slice $(next)$ $(number)$>>
\end
<$button>
<$set name="next" value=<<nextsl>>>
<$set name="text" value=<<slicetext>>>
<$list filter='[title[$(next)$][search:text[sli$(number)$]]'>
<$fieldmangler>
<$action-setfield $tiddler="$:temp/Slide/$(number)$" text=$(text)$/>
</$fieldmangler>create slide tiddler 1
</$list>
</$set>
</$set>
</$button>
Thanks a lot for help.
Jan
--
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/5899D7CD.3000402%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.