May we pass more than one variable to a widget ?
Example : Need with a mailTo Widget
I needed the name of the resource, the mail of the submitter etc.. But one widget = one variable.
@sylvain say that i should use a sub-object but I cannot change my resource model just for this special case..
In my dream, I imagine :
bind-resources
fields="name, description, author, email, sendmail"
widget-name = "cs-display-resource-property"
widget-description = "cs-display-resource-property"
widget-author = "cs-display-resource-property"
widget-sendmail = "cs-display-mail-to"
variables-sendmail = {name, email}
)
sib-widget(name='cs-display-mail-to')
template
a.button(
href="mailto:s\${email}\?subject=\${name}&body=Hello, the ressource '\${name}' has been validated."
) Send a mail to the submitter