How to Select News Records in my Custom Extension Field Defined in DCA
Hi friends,
Is there any alternative method other than below configuration to list the news records in my custom field Configured in DCA .
I have a field named news in my job Extension ,which helps to choose the news related to Job .The below Configuration helps to load all news (500 > ) in the select module.But it's not friendly to search and choose news related to jobs.
/**
* Add a new field to myTable
*/
$GLOBALS['TL_DCA']['tl_test']['fields']['related'] = array(
'label' => 'related',
'exclude' => true,
'filter' => true,
'inputType' => 'select',
'foreignKey' => 'tl_news.headline',
'eval' => array('multiple' => true, 'fieldType' => 'checkbox', 'foreignTable' => 'tl_news', 'titleField' => 'headline', 'searchField' => 'headline', 'managerHref' => 'do=news&table=tl_news'),
'sql' => "text NULL",
'relation' => array('type' => 'belongsToMany', 'load' => 'eager'),
);
Can any one please help me to find an alternative method other than using select box so that I can search and add the multiple news?