Results 1 to 3 of 3

Thread: Need help with dcaconfig.php in Contao 4.4 LTS

  1. #1
    New user
    Join Date
    10-15-18.
    Posts
    8

    Default Need help with dcaconfig.php in Contao 4.4 LTS

    Hello! I have to do some small customizations in backend.
    In Contao 3.5 I was using dcaconfig.php

    for example to set default values:

    <?php
    $GLOBALS['TL_DCA']['tl_content']['fields']['size']['default']['3'] = 'crop';
    $GLOBALS['TL_DCA']['tl_content']['fields']['size']['default']['0'] = 230;
    $GLOBALS['TL_DCA']['tl_content']['fields']['size']['default']['1'] = 230;
    $GLOBALS['TL_DCA']['tl_content']['fields']['fullsize']['default'] = true;
    ?>

    I read that in Contao 4.4 i should put this file into /app/Resources/contao/dca/

    But it has no effect! Nothing changes!
    I can place anything there:
    <?php
    error ! error ! error
    ?>

    and nothing happens! File is not being loaded.

    Should i edit any other config file also?

    Thanks in advance.

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,241

    Default

    You must clear the Symfony cache when making changes to configuration files.
    Contao Community Moderator
    → Support options

  3. #3
    New user
    Join Date
    10-15-18.
    Posts
    8

    Default

    ok... thanks

    I didn't know how to do this but I found this option in contao-manager.phar.php -> maintenance -> rebuild production cache


    now it works

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
  •