Yeah, I thought it might be more complicated than that. :) Anyway, thanks for the help. w
On Sep 16, 9:35 pm, PMario <[email protected]> wrote: > Hi, > Sorry, but for your described behaviour, it would be needed, to push > found root tiddlers uniquely to an array. And when finished, loop over > the array and print the result. I have no clue, how to do this with > fET. > > A fET specialist needs to jump in here. > -m > On Sep 16, 4:57 pm, whatever <[email protected]> wrote: > > > Hi! > > Whether it's theme or topic doesn't really matter. I'm using tema. And > > yes, it should be topic, since theme is a false friend. > > Anyway, interesting solution and I actually understand it.:D It's not > > unlike: > > <<forEachTiddler where 'tiddler.tags.contains("tema") || > > tiddler.tags.contains("comment")' sortBy 'tiddler.modified' > > descending>> > > What I wanted was just to see the titles of the main topic tiddlers, > > which should be sorted by their own date modified (if they have no > > comments) or date modified of the last comment (if they have them). > > Example (DD.MM.LLLL): > > TiddlerA - 13.1.2010 > > TiddlerB - 14.1.2010 > > TiddlerC - 14.1.2010 > > TiddlerAComment1 - 15.1.2010 > > TiddlerBComment1 - 16.1.2010 > > TiddlerBComment2 - 17.1.2010 > > If sorted descending by date modified, the result would be: > > TiddlerB > > TiddlerA > > TiddlerC > > So no comment tiddlers, just the main topic tiddlers. > > Also, can tiddlers tagged Archived be excluded from this list? Because > > if I use fET and I use "contains tema && !Archived || comment", the > > comments get included as well. > > > w > > > On Sep 16, 4:09 pm, PMario <[email protected]> wrote: > > > > Hi, > > > I am not sure, but is it really "theme" or "topic"? > > > > <<forEachTiddler > > > where 'tiddler.tags.contains("theme") || > > > tiddler.tags.contains("comment")' > > > sortBy 'tiddler.modified' > > > descending > > > script ' function getRoot (tiddler) { > > > var text; > > > if (tiddler.fields.root) { > > > text = "[["+(tiddler.fields.root)+"]] ("+tiddler.title+")" ; > > > } > > > else { > > > text = "[["+(tiddler.title)+"]]"; > > > } > > > return text + "\n"; > > > }' > > > write 'getRoot(tiddler)'>> > > > > I did some more tweaking, and put the real tiddler title in () > > > otherewise there will be double entries in the list. eg > > > aTitle .. once the fields.root tiddler > > > aTitle .. once the real tiddler > > > > displayed now > > > aTitle (comment....) > > > aTitle > > > > hope this helps > > > have fun! > > > mario > > > > On Sep 15, 8:53 pm, whatever <[email protected]> wrote: > > > > > Hi! > > > > > I tried > > > > <<forEachTiddler where 'tiddler.tags.contains("theme") && > > > > tiddler.tags.contains("comment")' sortBy 'tiddler.modified' descending > > > > script 'function root() {var text=(tiddler.fields.root)? > > > > tiddler.fields.root : tiddler.title; return (text);}' write '\n"'>> > > > > and > > > > <<forEachTiddler where 'tiddler.tags.contains("theme") && > > > > tiddler.tags.contains("comment")' sortBy 'tiddler.modified' descending > > > > write '"<script>function root() {var text=(tiddler.fields.root)? > > > > tiddler.fields.root : tiddler.title; return (text);}</script>\n"'>> > > > > but I got nothing. Javascript is not exactly my strong point, so I'm > > > > guessing I completely messed up. To recap, I want themes to be sorted > > > > by their date modified (if they have no comments) or date modified of > > > > their last comment. > > > > > w > > > > > On Sep 14, 11:12 am, PMario <[email protected]> wrote: > > > > > > hi, > > > > > I think somewhere in your fET code there is "tiddler.title" returned > > > > > to the list output. > > > > > Accessing the "root" field of a tiddler, is "tiddler.fields.root" > > > > > So instead returning tiddler.title return tiddler.fields.root > > > > > > eg: > > > > > var text=(tiddler.fields.root)? tiddler.fields.root : tiddler.title; > > > > > > use the text as output. > > > > > > It first asks if there is a root field: (tiddler.fields.root)? > > > > > if yes text will be tiddler.fields.root > > > > > if no text will be tiddler.title > > > > > > hope this helps > > > > > -m > > > > > > On Sep 13, 8:41 pm, whatever <[email protected]> wrote: > > > > > > > So, does anyone have an idea? > > > > > > > On Sep 1, 2:49 pm, whatever <[email protected]> wrote: > > > > > > > > Yeah, sorry about that. Sloppy me. > > > > > > > w > > > > > > > > On Sep 1, 2:36 pm, Tobias Beer <[email protected]> wrote: > > > > > > > > > Hi whatever, > > > > > > > > > It would be nice, if you always referred to what you're talking > > > > > > > > about > > > > > > > > by giving references like so: Mahemoff's CommentsPlugin [1] > > > > > > > > > [1]http://tiddlywiki.mahemoff.com/CommentsPlugin.html#CommentsPluginInfo -- 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.

