[turba] Link Attribute Type Usage

Mike Bydalek mbydalek at compunetconsulting.com
Mon Apr 24 19:15:22 PDT 2006


Hello.

I upgraded a while ago to Turba 2.x from 1.x and I have a real custom
set of attributes set in conf/attributes.php  They all seem to work as
expected, except for one which I have a  'type' = 'link', eg:

$attributes['spouse'] = array(
    'label' => _("Spouse/Partner Name"),
    'type' => 'link',
    'required' => false,
    'params' => array ('values' => array ('page' => 'display.php',
                                          'params' => array ('source' =>
'members',
                                                             'key' =>
'uid=__USERNAME__,dc=domain,dc=com')))
);

What's happening is that when the contact is displayed, the
Spouse/Partner Name just comes up null, there's no box to
select/choose/enter into.  Is the way I have the attribute type defined
above correct?

If not, what is the correct way to do so?  Basically I want an attribute
to link husbands and wives from two different sources (husbands and
wives).  Also, in my conf/sources.php, I do have a 'members' source.

Any ideas to point me in the correct direction?  I did find the code
where the Horde_Form type is extended to Type_link, but don't really
know where to go from there.

Thank you in advance,

Mike


More information about the turba mailing list