Thanks, Eric, you are the best! As usual, I have another question coming:
My SiteMenu and MainMenu are horizontal and fixed on top of the window. I had to add an adjustment to the core "ensureVisible" method so tiddlers would scroll properly and not be hidden behind the fixed "header". But SectionLinks is using a different method to scroll a section into visibility and I couldn't figure out how to amend your plugin for the same effect as I did with the [quite simple] ensureVisible. -- R On Apr 9, 6:02 pm, Eric Shulman <[email protected]> wrote: > > <span class='sectionTOC small'><b>Table of Contents:</b></span> > > <!--to actually display table of contents add <<sectionTOC>> at the > > end of a tiddler--> > > > It works as intended except the "Table of Contents:" text is of course > > in every tiddler now. How can I hide it if <<sectionTOC>> is not > > present in an actual tiddler? > > Get the latest update (v1.1.1) > http://www.TiddlyTools.com/#SectionLinksPlugin > > Then, in your ViewTemplate, write: > > <span class='sectionTOC small' style='display:none'> > <b>Table of Contents:</b> > </span> > > This will *hide* the sectionTOC 'target element' by default, and only > show it when the <<sectionTOC>> macro is actually in a tiddler. > > enjoy, > -e > Eric Shulman > TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---

