Results 1 to 1 of 1

Thread: How to Select News Records in my Custom Extension Field Defined in DCA

  1. #1
    New user
    Join Date
    09-19-17.
    Posts
    7

    Beitrag 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?
    Last edited by ebin; 10/10/2017 at 10:19.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •