This should work. fET has a nice keyword called "begin", which you can use for table headers.
<<forEachTiddler where 'tiddler.tags.contains("book")' sortBy tiddler.data("author") ascending write '"|"+tiddler.data("author")+"|[["+tiddler.title+"]]|\n"'' begin '"|Author|Book Title|h\n"'>> The "h" before the "\n" is optional and gives the header row the header class. w On Mar 29, 11:57 am, James <jmconthe...@gmail.com> wrote: > Thanks Måns, > just one litte problem with your script. > > The Table output creates > |Author|Book Title| > | | Author|Book Title| > > For some reason the cells do not line up properly, the headers are > fine but ther appears to be an extra cell. > Any idea what's causing this? > > Cheers James > > On Mar 28, 10:35 pm, Måns <humam...@gmail.com> wrote: > > > > > > > > > Hi James > > This might do what you want (untested...): > > > <<forEachTiddler where 'tiddler.tags.contains("book")' > > sortBy > > tiddler.data("author") > > ascending > > write > > '"|Author|Book Title|h\n||"+tiddler.data("author")+"|[["+tiddler.title > > +"]]|\n"'>> > > > "\n" (without the quotes) creates linebreaks and the "h" (without the > > quotes) formats the row as a header.. > > > Cheers Måns Mårtensson -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlywiki@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.