> > Simply wrap date in the respective wiki markup (two single quotes):
> >      '(index < 5) ? "* ''" +
> >          tiddler.modified.formatString("DD MMM YY") +
> >          "''&rarr; [[" +

> That doesn't.  I think it gets confused by the single quote in front
> of the '(index...

As you noted, the problem is that the write clause of the
ForEachTiddler is already surrounded by single-quotes, so it can't be
used within the clause.

Fortunately, there is a workaround: because the write clause is
actually a snippet of javascript code that outputs text that contains
the single quotes, instead of using the literal single-quotes with the
text, you can replace them with \x27, the character hex-code for the
single-quote, like this:

     '(index < 5) ? "* \x27\x27" +
       tiddler.modified.formatString("DD MMM YY") +
       "\x27\x27&rarr; [[" +

enjoy,
-e
Eric Shulman / TiddlyTools

--~--~---------~--~----~------------~-------~--~----~
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