Results 1 to 2 of 2

Thread: insert Document form fileTree

  1. #1
    New user
    Join Date
    07-30-11.
    Posts
    3

    Default insert Document form fileTree

    I have a Field with inputType: fileTree and want it to insert into an url. With this code it returns +9 instead of the documentUrl. How can I input documentsUrl via fileTree?

    $this->Template->id = $this->id;
    $this->Template->headline = $this->headline;
    $this->Template->shorttext = $this->shorttext;
    if($this->url)
    $this->Template->url = $this->url;
    else
    $this->Template->url = $this->document;

    $GLOBALS['TL_DCA']['tl_content']['fields']['document'] = array
    (
    'label' => &$GLOBALS['TL_LANG']['tl_content']['document'],
    'inputType' => 'fileTree',
    'eval' => array('files'=>true,'mandatory'=>false, 'fieldType'=>'radio')
    );
    $GLOBALS['TL_DCA']['tl_content']['fields']['url']['eval']= array('mandatory'=>false);

  2. #2
    New user qzminski's Avatar
    Join Date
    01-08-13.
    Location
    Poland
    Posts
    24

    Default

    Contao version? What are you trying to achieve?
    Contao ambassador
    Codefog - Contao web development

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
  •