Thanks Eric, Nice, I'll try that.
//Tobbe On 24 Sep, 08:13, Eric Shulman <[email protected]> wrote: > > I'm thinking of making a TW into a geneology database. The title in > > every tiddle gonna be the persons name. The I'm gonna put in the > > display area this information: > > Firstname Lastname was born 1854-04-01 in Ghosttown, Spokane, USA son > > of [[Big Lastname]] and [[Mrs Lastname]] > ... > > So I wanna be able so make a search in every tiddler and looking for a > > certain birthdate and the result should be a new tiddler with the > > birthdate as the title and in the display area all the people that are > > born that certain date I search for > > Instead of using free-form text to enter your content into each > tiddler, if you use some special formatting for the content, then they > can be used programmatically as 'tiddler slices' (addressable name- > value pairs, stored in the tiddler's text content). For example, in a > tiddler named [[John Smith]], you could write: > > First: John > Last: Smith > Born: 1854-04-01 > Place: Ghosttown, Spokane, USA > Father: Big Lastname > Mother: Mrs Lastname > > Then, you can use macros like: > <<tiddler [[JohnSmith::Place]]>> > which displays: > Ghosttown, Spokane, USA > > and, you can programmatically access slice values, too. For example, > using ForEachTiddlerPlugins's <<forEachTiddler>> macro, you can write: > > <<forEachTiddler > where > 'store.getTiddlerText(tiddler.title+"::Born","").startsWith > ("1854")' > sortBy > 'store.getTiddlerText(tiddler.title+"::Last","")' > ascending > write > '"|"+store.getTiddlerText(tiddler.title+"::First","") > +"|"+store.getTiddlerText(tiddler.title+"::Last","") > +"|"+store.getTiddlerText(tiddler.title+"::Born","") > +"|\n"' > > > > enjoy, > -e > > note: for a discussion/explanation of slices, > see:http://groups.google.com/group/tiddlywiki/browse_frm/thread/e1ec74a3f... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

