[Catalyst] HTML::Widget field_xml() and CSS formatting
John Lifsey - Contractor -
john.lifsey at nrl.navy.mil
Mon Mar 13 18:21:02 CET 2006
You could use TT's XSLT plugin to format the XML any way you like. Of
course that just adds one more layer of templating.
Michele Beltrame wrote:
> Hello!
>
> I am using HTML::Widget to generate my forms and I find that the XML it
> generates is quite difficult to skin so that it displays i.e. in a table
> like fashion (that is: labels on the left and elements all aligned at a
> fixed horizontal location).
>
> I iterate through elements like this (TT2 code):
>
> [% emodify = c.widget_result('emodify') %]
> [% FOREACH element IN emodify.elements %]
> [% element.field_xml %]
> [% IF (element.error) %][% element.error_xml %][% END %]
> [% END %]
>
> HTML::Widget generates XML such as this for each entry:
More information about the Catalyst
mailing list