[ListboxPlugin] Changing list definitions based on a field value

26 views
Skip to first unread message

ovasquez

unread,
Jul 2, 2011, 1:38:40 AM7/2/11
to tiddl...@googlegroups.com
Hello,

I am using Eric Shulman's ListboxPlugin in a TiddlyWiki-based Content Management System that I am developing.

I am looking for a way to change a listbox content based on the content of another field, like the inter-dependant select menus, where the selection of one menu changes the contents of another, so when I change the value of a field using a listbox, another listbox for another field will show different options calculated from the values of the first field.

Use case:

if field ObjectType = Index then field Folder select option(s) = Root,Directory1, Directory2
if field ObjectType =Page then field Folder select option(s) = Directory1, Directory2

From reading the docs it seems possible:
If you use "*" preceding the TiddlerName, the contents of the tiddler will first be processed by the TiddlyWiki parser and that output will then be used as the list definition. This allows you to apply macros and scripts to dynamically generate list definitions based on the current document contents (such as available tag names).
Thanks for your attention,

Omar Vasquez
Caracas, Venezuela
Reply all
Reply to author
Forward
0 new messages