> After playing around with the two plugins, I think I found a way (with
> my very, very limited skills) to modify CheckBoxPlugin to do what I'm
> looking for...
>
> I took the line:          var target=lookaheadMatch[3];
> and simply set it to   var target=config.options.txtUserName;
> and then deleted the next line to stop it from trimming the
> UserName.

Please don't tweak plugin code like this.  If you share you document
with even one other person, then that plugin will 'escape' into the
wild and could become a big nuisance.  Please see
   http://www.TiddlyTools.com/#LegalStatements
for information about terms of use, modification, and redistribution
of TiddlyTools published components.

In any case, there is a *simple* solution: CheckboxPlugin provides TWO
forms of syntax... one is the 'inline' format: [x], the other is a
*macro* syntax: <<checkbox target ...>>

Using the macro syntax, you can specify the target using an *evaluated
parameter*, like this:
   <<checkbox {{config.options.txtUserName}}>>

Please see http://www.TiddlyTools.com/#CheckboxPluginInfo for more
options.

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