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 <kbrezov...@gmail.com> 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 <pmari...@gmail.com> 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 <kbrezov...@gmail.com> wrote: > > > > So, does anyone have an idea? > > > > On Sep 1, 2:49 pm, whatever <kbrezov...@gmail.com> wrote: > > > > > Yeah, sorry about that. Sloppy me. > > > > w > > > > > On Sep 1, 2:36 pm, Tobias Beer <beertob...@googlemail.com> 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 tiddlyw...@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.