Thanks Mans, I'll try that out. Cheers, Clark On Nov 30, 7:28 am, Måns <[email protected]> wrote: > Here's yet another one (involving ForeachTiddlerPlugin) setup as a > transclusion. > Create a tiddler i.e > [[Excerpts]] > <<forEachTiddler > where > 'tiddler.tags.containsAny(["$1","$2"])' > sortBy > 'store.getValue(tiddler,"created")' > descending > write > '"\n@@font-size:1.5em;[["+tiddler.title+"]]@@@@color:#999; - " + > Date.convertFromYYYYMMDDHHMM(store.getValue(tiddler,"created")).formatStrin > g("YYYY/ > 0MM/0DD")+" - "+tiddler.modifier+"@@\n" + > "{{excerpt{\n" + > (tiddler.text.match("/%%/") ? > tiddler.text.substr(0,tiddler.text.indexOf("/%%/")) : > tiddler.text.substr(0,300)) + > " ...\n[[more ...|"+tiddler.title+"]]\n----\n}}}";' > > > > In another tiddler write (without the quotes): > "<<tiddler Excerpts with: fruit>>" > > See example:http://testelev.tiddlyspace.com/#fruit > > Cheers Måns Mårtensson > > On 30 Nov., 09:39, Måns <[email protected]> wrote: > > > > > > > > > Sorry - Google omits the macro ending ">>" > > I've made an example > > here:http://testelev.tiddlyspace.com/#%5B%5BTest%20FirstLines%5D%5D > > > Cheers Måns Mårtensson > > > On 30 Nov., 09:21, Måns <[email protected]> wrote: > > > > Hi Clark > > > > Install > > > ForeachTiddlerPluginhttp://tiddlywiki.abego-software.de/#ForEachTiddlerPlugin > > > (Maybe you'll need inlineJavaScriptPlugin (http://www.tiddlytools.com/ > > > #InlineJavascriptPlugin) as well - don't know really.. ) > > > > Put this in a tiddler: > > > <<forEachTiddler > > > where > > > 'tiddler.tags.contains("fruit")' > > > script > > > ' > > > function getFirstLine(s) { > > > var m = s.match(/\s*(.*)/); > > > return m != null && m.length >= 1 ? m[1] : ""; > > > } > > > ' > > > write > > > '"@@[["+tiddler.title+"]]@@ → ~~//"+getFirstLine(tiddler.text) > > > +"//~~\n"' > > > > Cheers Måns Mårtensson > > > > On 30 Nov., 07:50, Clark Kogan <[email protected]> wrote: > > > > > Hello, > > > > I want to have a page that shows links to tiddlers that match a > > > > certain search criteria, and then shows a brief one line description > > > > of the tiddlers. For instance, if the search keyword was "fruit", the > > > > following list might appear: > > > > > Banana - A yellow fruit > > > > Apple - A hard fruit > > > > Orange - A juicy fruit > > > > > Each description might be taken from the top line of the tiddler of > > > > interest. > > > > I know that the SearchOptionsPlugin and the TiddlerListMacro do > > > > similar things, but do not have any way to display a short description > > > > of the tiddler. > > > > > I was wondering if anyone knew of something similar to this that was > > > > already available. > > > > > Thanks, > > > > Clark
-- 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.

