wow this works great. I made a little tweak to the last part of the code
to straighten out the numbers.
I just open up the tiddlywiki site and made a new tiddler.
<<toc-heading "examples" "
<ol>
<$list filter='[!is[system]tag[examples]]'>
<li><$link><$view field='title'/></$link></li>
</$list>
</ol>
">>
On Sunday, August 17, 2014 10:18:09 PM UTC-5, Matthew DeAbreu wrote:
>
> Make sure you include the macro definition so the full code would look
> something like this:
>
> \define toc-heading(caption,body)
> <$reveal type="nomatch" state=<<qualify "$:/state/toc/$caption$">>
> text="show">
> <$button set=<<qualify "$:/state/toc/$caption$">> setTo="show"
> class="btn-invisible">{{$:/core/images/right-arrow}} $caption$
> </$button>
> </$reveal>
> <$reveal type="match" state=<<qualify "$:/state/toc/$caption$">>
> text="show">
> <$button set=<<qualify "$:/state/toc/$caption$">> setTo="hide"
> class="btn-invisible">{{$:/core/images/down-arrow}} $caption$
> </$button>
> </$reveal>
> <$reveal type="match" state=<<qualify "$:/state/toc/$caption$">>
> text="show" retain="yes" animate="yes">
>
> $body$
>
> </$reveal>
> \end
>
> <<toc-heading "Games" "
> <ol>
> <$list filter='[!is[system]tag[Game]]'>
> <li><ol><li><$link><$view field='title'/></$link></li></ol></li>
> </$list>
> </ol>
> ">>
>
> Hope this helps
>
>
--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.