[html-formfu] Fields with visual indicator

Jason Kohles email at jasonkohles.com
Fri Dec 28 14:48:49 GMT 2007

On Dec 28, 2007, at 7:53 AM, Ferruccio Zamuner wrote:

> Hello Carl Franks, you wrote:
>> btw, with the code examples you gave in your original bug report
>> (http://code.google.com/p/html-formfu/issues/detail?id=16 ) setting
>> the INCLUDE_PATH isn't enough to make formfu use Template to render
>> the form anymore - you also have to set $form->render_method('tt') -
>> otherwise it'll use internal methods to generate the markup.
> First I've tried to modify formfu/input creating formfu/myinput TT:
> [% WRAPPER field %][% INCLUDE $self.field_filename %][% END %]
> <span>
> <img ...>
> </span>
> it works but I prefer to include my images in the content <span>,  
> then I've tried to create a 'myfield' TT
> How can I tell to 'formfu/myinput' to include 'formfu/myfield' TT  
> instead of 'formfu/field' TT ?
Why can't you just name it 'field' instead of 'myfield', thats how  
overriding is normally done...

email at jasonkohles.com - http://www.jasonkohles.com/
"A witty saying proves nothing."  -- Voltaire

More information about the HTML-FormFu mailing list