Separate QF hierselect-html in smarty template

From: Date: Thu, 24 Feb 2005 23:46:40 +0000
Subject: Separate QF hierselect-html in smarty template
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17678@lists.php.net to get a copy of this message
Hi group I'm using the hierselect element (From the QuickForm class) in a form using the following code: $sortfield =& $form->addElement('hierselect', 'sortref', 'Placering:', null, '/'); $sortfield->setOptions(array($mainoptions, $secondaryoptions)); And I'm writing the html-code in a smarty template using the following code: ... <td>$form.sortref.label}</td> <td>{$form.sortref.html}</td> ... Is there any way I can separate the two hierselect elements in the template? I would like something like: <td>$form.sortref.label}</td> <td>{$form.sortref.1.html}</td> <td>{$form.sortref.2.html}</td> The above is a simplified example of what I'm trying to achieve which is why a solution using the string "</td>\r\n<td>" as separator won't do the trick! Hope someone has an idea! Cheers, Tommy Ipsen

« previous php.pear.general (#17678) next »