[dev] Request for comment : new hook to format how
various attributes are diaplyed in Turba
Etienne Goyer
etienne.goyer at linuxquebec.com
Thu May 20 06:27:56 PDT 2004
Chuck Hagenbuch wrote:
> Quoting Etienne Goyer <etienne.goyer at linuxquebec.com>:
>> Instead, my idea right now is to build a _turba_hook_display_* hook,
>> which function would be to return HTML snippet for the presentation os a
>> specific attribute. From what I can see, the only place where I would
>> need to plug this hook is in turba/templates/browse/contactrow.inc. The
>> patch would be quite trivial. I guess, beside my formating of fax
>> number, it could also be used to format URL appropriately ('website' and
>> 'freebusyUrl' attribute), extract and format a 'photo' or 'jpegPhoto'
>> attribute from an LDAP directory, etc.
>
>
> I'd much rather see this done with custom form types and renderers for
> those
> types, which Turba ought to be using anyway for proper display of things
> like
> pictures.
Ok, I will look into that, but ... what do you mean by "custom form
types and renderers" ? Do you mean the type as defined in
turba/config/attributes.php, and the renderer as the code in
turba/templates/browse/contactrow.inc ?
Thanks !
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.horde.org/archives/dev/attachments/20040520/9f3ea776/signature.bin
More information about the dev
mailing list