Anthony, using your code verbatim, I get the "SyntaxError: unterminated string literal" error. I tried replacing the ? in context.lastGroup?context.lastGroup with a = but then I got the "SyntaxError: missing ) in parenthetical" error. What am I missing?
w On May 2, 5:07 am, Anthony Muscio <[email protected]> wrote: > A Variation of the following advanced "ForEachTiddler" code may help; > It creates an alphabetical index list. > > You can also the use > ofhttp://www.TiddlyTools.com/#SectionLinksPlugin<http://www.tiddlytools.com/#SectionLinksPlugin>to > generate a Table of Contents that jumps to that letter in the index. > > <<forEachTiddler > where 'tiddler.tags.contains("contact") && ! > tiddler.tags.contains("Trash")' > sortBy > 'tiddler.title.toUpperCase()' > > script > ' > function getGroupCaption(tiddler) { > return tiddler.title.substr(0,1).toUpperCase(); > } > > function getGroupTitle(tiddler, context) { > if (!context.lastGroup || context.lastGroup != > getGroupCaption(tiddler)) { > context.lastGroup = getGroupCaption(tiddler); > return "* {{{"+(context.lastGroup?context.lastGroup:"no > tags")+"}}}\n"; > } else > return ""; > } > ' > > write > 'getGroupTitle(tiddler, context)+"** [[" + tiddler.title+"]]\n"' > > > > TonyM > > If you have not found an easy way to do it with TiddlyWiki, you have missed > something.www.tiddlywiki.com > > > > On Sun, May 2, 2010 at 10:54, Mike <[email protected]> wrote: > > Check Out PMario's. . . > >http://apm-plugins.tiddlyspot.com/#TiddlerMapTabs > > > Mike > > > On May 1, 4:26 pm, MaBjoT <[email protected]> wrote: > > > Hi guys > > > > I want to make an encyclopedia-type file using TiddlyWiki and my only > > > problem so far is that I want to have a list of the letters of the > > > alphabet (A B C D ...) fixed at the top of the page. Clicking on any > > > letter would open up a list of all the tiddlers tagged with that > > > letter (could be a dropdown list). All entries beginning with "A" > > > would get an "A" tag, etc. > > > > Do any of you know how I might go about doing that? > > > > Thanks, > > > MaBjoT > > > > -- > > > 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]<tiddlywiki%[email protected]> > > . > > > For more options, visit this group athttp:// > > groups.google.com/group/tiddlywiki?hl=en. > > > -- > > 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]<tiddlywiki%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/tiddlywiki?hl=en. > > -- > 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 > athttp://groups.google.com/group/tiddlywiki?hl=en. -- 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.

