<?php

/*
 * This file is part of contao-weinanlieferung-bundle.
 *
 * (c) vonRotenberg
 *
 * @license commercial
 */

use Contao\CoreBundle\DataContainer\PaletteManipulator;

PaletteManipulator::create()
    ->addLegend('wa_config_legend','global_legend')
    ->addField('vr_wa_uploadFolderSRC','wa_config_legend',PaletteManipulator::POSITION_APPEND)
    ->applyToPalette('root','tl_page')
    ->applyToPalette('rootfallback','tl_page');


$GLOBALS['TL_DCA']['tl_page']['fields']['vr_wa_uploadFolderSRC'] = array(
    'exclude'    => true,
    'inputType'  => 'fileTree',
    'eval'       => array('fieldType'=>'radio', 'files'=>false, 'mandatory'=>true, 'tl_class'=>'clr'),
    'sql'        => "binary(16) NULL"
);