On Oct 27, 8:42 am, Yannan <[EMAIL PROTECTED]> wrote:
> How to create a tiddler to open the latest 10 tiddlers tagged with
> "tagfoo" ?
>
> I want to put something on the MainMenu such that when it is clicked,
> the list of latest 10 tiddlers tagged with a particular tag will be
> displayed.

The easiest way to do this is with the TW core's <<tag>> macro:

<<tag tagfoo "label" "tooltip">>

This will create a link (using the indicated "label" and "tooltip"
text) that, when clicked, displays a TW 'popup' listing all tiddlers
with the specified tag value (i.e., "tagfoo").

However, there are two minor differences between this built-in
function and the exact behavior you have described:
  * the list is sorted alphabetically
  * the list is not limited to 10 items

To address the first difference, you can install
   http://www.TiddlyTools.com/#CoreTweaks
which includes a unticketed 'tweak' that adds a 'sortby' parameter to
the <<tag>> macro, so that you can write:
   <<tag tagfoo "label" "tooltip" -modified>>
so that the results are sorted by date, most recent first.

The second difference is a bit more problematic, and I don't have a
ready solution for limiting the number of items that appear in a tag
popup list...

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
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