Great!

On 16 Sep., 19:29, Eric Shulman <elsdes...@gmail.com> wrote:
> > Unless, of course, you already have something
> ...
> > present one with a select list based on the
> > theme-field in order to be able to select a theme
>
> http://www.TiddlyTools.com/#ListboxPlugin
>
> allows you to specify a listbox or droplist that can be used to select
> a value and store it as a custom field in a tiddler
>
> For this discussion, something like:
>    <<select theme rows:1 +ListOfThemes>>
> where [[ListOfThemes]] contains a simple space-separated list of theme
> names.
>
> You could even generate that list on-the-fly, by using a "*" prefix
> instead of the "+" prefix:
>    <<select theme rows:1 *ListOfThemes>>
> Then, instead of statically entering the theme names in the
> [[ListOfThemes]], you could use a macro (or perhaps a small inline
> script) to list the names of the available themes by looking for a
> particular tag (e.g. 'systemTheme'), like this:
>
> Using MatchTagsPlugin:
>    <<matchTags "%0" "\n" systemTheme>>
>
> Using InlineJavascriptPlugin:
> <script>
>    var tids=store.getTaggedTiddlers('systemTheme');
>    var titles=tids.map(function(t){
>       return t.tags.contains('excludeLists')?null:t.title;
>    });
>    return titles.join('\n');
> </script>
>
> enjoy,
> -e

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

Reply via email to