I used this code below to get multiple articles but when i pick articles and press save contao sort them by some criteria. I picked A,C,B articles but contao sort it in his way like A,B,C. I want when i get articles wit this field to get in way i picked them. i hope u understand me :D
PHP Code:
$GLOBALS['TL_DCA']['tl_content']['fields']['multipleArticle'] = array(
'label' => &$GLOBALS['TL_LANG']['tl_content']['multipleArticle'],
'inputType' => 'select',
'options_callback' => array('tl_content', 'getArticles'),
'eval' => array( 'chosen'=>true, 'tl_class'=>'w50 wizard','multiple'=>true),
'wizard' => array
(
array('tl_content', 'editArticle')
),
'sql' => "varchar(255) NOT NULL default ''"
);
Bookmarks