\define concatStateTiddler()
<$set filter="[all[current]get[draft.of]] [all[current]!has[draft.of]]">
"$:/state/<<currentTiddler>>"
</$set>
\end
\define backup(value)
<$view tiddler=$(concatStateTiddler)$ field="""$value$""">
<$view tiddler="$:/config/backup-values" field="""backup-$value$""">
</$view>
</$view>
\end\define concatStateTiddler()
"$:/state/$(currentTiddler)$"
\end\define concatStateTiddler()
<$set filter="[all[current]get[draft.of]] [all[current]!has[draft.of]] +[addprefix[$:/state/]]" name="kitty"><$text text=<<kitty>>/></$set>
\end
\define backup(value)
<$wikify text=<<concatStateTiddler>> name=cst>
<$view tiddler=<<cst>> field="""$value$"""/>
</$wikify>
\end
I think you might be getting the set widget confused with the list widget. With the list widget, there is a parameter called "variable" that defaults to "currentTiddler".
Regards,
Mal
Does that just need updated or something? Or am I misunderstanding it?
Similer to other widgets, I suppose this is a way to do the same as the tiddler widget but with the posibility of emptyvalue etc...
Tony
\define concatStateTiddler(value)
<$list filter="[all[current]get[draft.of]] [all[current]!has[draft.of]] +[addprefix[$:/state/]]">
<$view field=backup-$value$/>
</$list>
\endThe following version works.\define concatStateTiddler()
<$set filter="[all[current]get[draft.of]] [all[current]!has[draft.of]] +[addprefix[$:/state/]]" name="kitty"><$text text=<<kitty>>/></$set>
\end
\define backup(value)
<$wikify text=<<concatStateTiddler>> name=cst>
<$view tiddler=<<cst>> field="""$value$"""/>
</$wikify>
\end
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@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/ab4280b0-84b5-4447-b516-9dc1d6898885%40googlegroups.com.