Forums / Developer / How to make multi select definition,for new module ?

How to make multi select definition,for new module ?

Author Message

Selmah Maxim

Tuesday 20 May 2003 2:10:10 am

Hi ..

I Need to select from ezcontentobject some rows, and from the ezuser, now the ezcontentobject.owner is the related to ezuser.id, how can i select the user info with definition function ?

for ezcontentobject selecttion :

function &definition()
{
return array( "fields" => array( "id" => "ID",
"owner_id" => "Owner",
"contentclass_id"=> "7",
"name"=>"Name",
"current_version"=>"Version",
"published"=> "Published",
"modified"=> "Modified"
),
"keys" => array( "id" ),
"increment_key" => "id",
"class_name" => "Company",
"sort" => array( "id" => "asc" ),
"name" => "ezcontentobject " );
}

should i make another function to pick the user info by ezcontentobject.owner, or i can add more fields in the selection array ?

thx.