For my own information management purposes, I've decided to try taking
a basic TW, building it up, and using just the plugins that are
necessary to make it a useful tool. It seems to be plugins, rather
than actual file size, that hit performance hardest. Besides, I figure
I might as well wean myself off of plugins, many of which are likely
to disappear with the advent to TW5.
I'm not really using TW Notes anymore, but I liked the slider
technology and wanted to keep something like it in the main menu,
cleaning it up and making it easier to work with. In the interest of
keeping overhead low, I'm avoiding FET-based solutions.
So now I have a tiddler template that can make the individual top-
level categories. So in my case, I just have these lines in my
MainMenu tiddler:
<<tiddler MenuTemplate with:"Projects">><<tiddler MenuTemplate
with:"Personal">>
<<tiddler MenuTemplate with:"Info">><<tiddler MenuTemplate
with:"Sustainability">>
This makes it much easier to create new categories, which previously
required its own code for each category set up.
The tiddler macros call the template below, which generates the
siteMap lists on the fly. Don't know if this is useful to anyone, but
here it is.
HTH
Mark
--- Template Code: MenuTemplate ---
{{bluey{$1}}}
@@padding-left:0.5em;font-size:7pt;<<newTiddler title: 'Enter the name
for your new sub topic here' tag: '$1' tag: 'Note' text: '' label:
'subTopic' >> | <script label="refresh">
story.forEachTiddler(function(t,e)
{story.refreshTiddler(t,null,true)});
refreshDisplay();
return false;
</script>@@
<script>
var tids = store.getTaggedTiddlers("$1") ;
var out = "" ;
for(var i=0;i<tids.length;i++) {
var s = tids[i].title ;
//var m = s.match(/\s*(.*)/);
out += "<<siteMap [["+ s +"]] . sliders>>" ;
}
wikify(out,place) ;
</script>
--
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.