QuickForm and setting template for element type
| From: | donald | Date: | Wed, 03 May 2006 14:05:50 +0000 |
| Subject: | QuickForm and setting template for element type | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23916@lists.php.net to get a copy of this message | ||
Hi
I'd like to get own template for all radio buttons, own template for textareas... But is this possible? I found that you can set template for element name or group name, but not for type.
Is there a way in template to get template name? There is {label}, {template}, but not {name}.
I need to get <label for={name}>{label}</label>{element}<br /> for all texfields. However, if I make that kind of template, there will be 2 <label>'s for radio buttons, because renderer makes labels for radio buttons by default.