The following snippet builds an index of tiddlers with one button, then 
exports the index with another button. But while I tried to limit the 
tiddlers in the index to include only those with the word `Topics` in the 
`meta` field, it is adding all the tiddlers to the index. Any advice?

\define indexvalue() $(title)$|$(caption)$|$(tags)$

<$wikify name=indextitle text={{{ [{$:/SiteTitle}addprefix[index-for-]] }}} 
>

<$button>Make Index
<$list filter="[!is[system]meta[Topics]]">
<$vars title={{!!title}} caption={{!!caption}} tags={{!!tags}} >
<$action-setfield $tiddler=<<indextitle>> $index=<<currentTiddler>> 
$value=<<indexvalue>>/>
</$vars>
</$list>
<$wikify name=tiddlywiki text={{{ 
[{$:/SiteTitle}addsuffix[.html]][{$:/config/SaveWikiButton/Filename}]+[!is[blank]last[]]
 
}}} >
<$action-setfield $tiddler=<<indextitle>> $field="tiddlywiki" 
$value=<<tiddlywiki>>/>
<$action-setfield $tiddler=<<indextitle>> $field="index-source" 
$value="./XXXXX.sources.html"/>
</$wikify>
</$button>
<$vars tv-config-toolbar-class="tc-button tt-button">
<$list 
filter="[<indextitle>!is[missing]]">{{||$:/core/ui/Buttons/export-tiddler}}</$list>
</$vars>
</$wikify>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c50196df-18d7-4bbb-8e7d-2c038ea2fc50n%40googlegroups.com.

Reply via email to