Results 1 to 1 of 1

Thread: Table field

  1. #1
    User
    Join Date
    05-21-18.
    Posts
    122

    Default Table field

    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 ''"
    ); 
    Last edited by xchs; 08/14/2018 at 09:15. Reason: Code-Tags

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
  •