note as of 5.0.15 beta you can use the tableofcontentsmacro to do
this....yeah!
On Monday, August 18, 2014 11:14:15 AM UTC-5, Ken Gray wrote:
>
> this is really awesome. I was wondering if there was a way of making
> netsted categories based on tags. for instance, if a tiddler was tagged as
> a "Meeting" and had a tag "Scrum" it would go there. This would have the
> benefit of making it easier to skim through all the notes and I wouldn't
> have to maintain the sub-categories because it would build them
> automatically.
>
> *>*Meetings
> *>* Scrum
> *>* Admin
> *>* Support
>
> 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.