Thanks, Jed! It took me some head banging....I'm not all that bright....but it works like a charm. Even more, you have managed with this little bit of code to make an old ShadowPlan user grin from ear to ear. It gives me everything I could ask for and more. You have given me an outliner with a wikified structure that provides links to every entry I have tagged. Next step, I'm going to check out the tab settings to see if I can use it as a two pane outliner as well.
On Friday, March 6, 2015 at 1:09:30 PM UTC+8, Jed Carty wrote: > > To do this you would either create a new toc macro or edit one of the > existing ones. You could start by looking at the macros I made so I could > change the icons used > <http://inmysocks.tiddlyspot.com/#Other%20TOC%20Macros>. The macro > my-toc-linked-selective-expandable-body at the bottom of that tiddler has a > link widget in it, if you put your checkbox right before the link widget it > will show up right before the name of each entry in your toc. > > You can edit the macro in the core if you want, just remember that > overwritten shadow tiddlers don't get upgraded when you upgrade your wiki. > If you do copy the macros to make your own version like I did you need > versions of all three macros like I made, but only the > my-toc-linked-selective-expandable-body has anything other than names > changed. > > And if you want the checkbox to be between the open/close icon and the > tiddler title (I think it looks better that way), this would be the macro, > just replace {{$:/settings/TableOfContentsSettings!!closed_image}} and > {{$:/settings/TableOfContentsSettings!!open_image}} with what you want the > closed and open images to be. Using this you still need the other two > macros, but they can be the same as I have on my site. You may also want to > change the tiddlers/fields the checkboxes use. > > \define > my-toc-linked-selective-expandable-body(tag,sort:"",itemClassFilter) > <$set name="toc-state" value=<<qualify > "$:/state/toc/$tag$-$(currentTiddler)$">>> > <$set name="toc-item-class" filter="""$itemClassFilter$""" > value="toc-item-selected" emptyValue="toc-item"> > <li class=<<toc-item-class>>> > <$list filter="[all[current]tagging[]limit[1]]" variable="ignore" > emptyMessage="<$button > class='tc-btn-invisible'>{{$:/core/images/blank}}</$button><$checkbox/>"> > <$reveal type="nomatch" state=<<toc-state>> text="open"> > <$button set=<<toc-state>> setTo="open" class="tc-btn-invisible"> > {{$:/settings/TableOfContentsSettings!!closed_image}} > </$button> > <$checkbox/> > </$reveal> > <$reveal type="match" state=<<toc-state>> text="open"> > <$button set=<<toc-state>> setTo="close" class="tc-btn-invisible"> > {{$:/settings/TableOfContentsSettings!!open_image}} > </$button> > <$checkbox/> > </$reveal> > </$list> > <$link> > <<toc-caption>> > </$link> > <$reveal type="match" state=<<toc-state>> text="open"> > <$macrocall $name="my-toc-selective-expandable" tag=<<currentTiddler>> > sort="""$sort$""" itemClassFilter="""$itemClassFilter$"""/> > </$reveal> > </li> > </$set> > </$set> > \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 [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.

