Results 1 to 3 of 3

Thread: Get multiple articles

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

    Default Get multiple articles

    Hy all,
    I need help.
    Can i somehow get mulitple articles?
    With article dca field i can select only one article?
    Can i somehow make it get multiple?

  2. #2
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    Sure, should be possible:
    PHP Code:
    $GLOBALS['TL_DCA']['tl_content']['fields']['multiArticles'] = array
    (
        
    'label'                   => &$GLOBALS['TL_LANG']['tl_news']['multiArticles'],
        
    'exclude'                 => true,
        
    'inputType'               => 'select',
        
    'options_callback'        => array('tl_content''getArticleAlias'),
        
    'eval'                    => array('multiple'=>true'chosen'=>true'tl_class'=>'clr'),
        
    'sql'                     => "blob NULL"
    ); 
    (not tested)

  3. #3
    User
    Join Date
    05-21-18.
    Posts
    126

    Default

    Quote Originally Posted by Spooky View Post
    Sure, should be possible:
    PHP Code:
    $GLOBALS['TL_DCA']['tl_content']['fields']['multiArticles'] = array
    (
        
    'label'                   => &$GLOBALS['TL_LANG']['tl_news']['multiArticles'],
        
    'exclude'                 => true,
        
    'inputType'               => 'select',
        
    'options_callback'        => array('tl_content''getArticleAlias'),
        
    'eval'                    => array('multiple'=>true'chosen'=>true'tl_class'=>'clr'),
        
    'sql'                     => "blob NULL"
    ); 
    (not tested)
    Thanks!

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
  •