Results 1 to 3 of 3

Thread: Add additional input fields in an article

  1. #1
    New user
    Join Date
    12-22-12.
    Posts
    3

    Default Add additional input fields in an article

    Hello everyone.
    How can I add additional input fields into an article?
    I want for example a extra text field called "Groups" and an additional Textfield called "Platform".

    Thank you, Louis

  2. #2
    User
    Join Date
    06-20-09.
    Posts
    115

    Default Re: Add additional input fields in an article

    I don't know the answer to your question but have you looked at this extension, I think it does what you want:
    "Generate own Contentelements and frontend modules, The administrator can define form fields, which can be filled with content by the editor"
    dma_elementgenerator
    Forum link here to extension

    Apparently it currently only works up to 2.11 but you can get a working version for 3.0 via github - just google it
    geung

  3. #3
    New user
    Join Date
    12-22-12.
    Posts
    3

    Default Re: Add additional input fields in an article

    I found out how it works on my own:
    You need to create a dca contao/system/modules/testmod/dca/tl_article.php:
    Code:
    $GLOBALS['TL_DCA']['tl_article']['palettes']['default'] = $GLOBALS['TL_DCA']['tl_article']['palettes']['default'].";{tl_example_legend},tl_example_input";
    $GLOBALS['TL_DCA']['tl_article']['fields']['tl_example_input'] = array
    (
    	'label'                   => &$GLOBALS['TL_LANG']['MSC']['tl_example_input'],
    	'inputType'               => 'text',
    	'eval'                    => array('tl_class'=>'clr long'),
    	'sql'                     => "char(1) NOT NULL default ''"
    );

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
  •