> Using ListboxPlugin
> <<select fieldname rows:1 *.listProjects>>
> .listProjects
> contains the necessary foreachtiddler command to list all tiddlers
> with the projects tag
Rather than using <<forEachTiddler>>, the <<select>> macro provides a
built-in syntax for listing tiddlers based on a given tag...
<<select fieldname rows:1 =projects>>
where the "=projects" syntax generates a list containing the titles of
all tiddlers that are tagged with "projects".
Also, if you use "=cookiename" in place of the fieldname, the selected
value will be stored as a global TW option cookie rather than using a
custom tiddler field in the current tiddler.
Thus:
<<select =CurrentProject rows:1 =projects>>
creates a droplist of all tiddlers that are tagged with projects and,
when a selection is made, it stores the selected tiddler title in an
internal config variable called:
config.options.txtCurrentProject
which is also automatically saved as a browser-based option cookie
called:
txtCurrentProject
Note: the "=cookiename" syntax was just added to the plugin today, so
you might want to get the update to the most recent release (v1.1.0):
http://www.TiddlyTools.com/#ListboxPlugin
http://www.TiddlyTools.com/#ListboxPluginInfo
enjoy,
-e