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.

Reply via email to