• We are trying to change the way our Perch 3 installation handles Assets which are not being used.

    Currently the box 'Mark as library asset' is ticked for every new asset entered. We want the default to NOT have the box ticked.

    Looking at the config.php file I see this:

    <?php define('PERCH_LICENSE_KEY', 'xxxxxxxxxxxx'); switch($_SERVER['SERVER_NAME']) { case 'aircrew-remembered.test':


    break; default:



    } define('PERCH_EMAIL_FROM', 'xxxxxxxxxx');

    define('PERCH_EMAIL_FROM_NAME', 'Stefan Youngs'); define('PERCH_LOGINPATH', '/editorial');

    define('PERCH_PATH', str_replace(DIRECTORY_SEPARATOR.'config', '', dirname(__FILE__)));


    define('PERCH_RESPATH', PERCH_LOGINPATH . '/resources');    

    define('PERCH_HTML5', true);

    define('PERCH_CLEAN_RESOURCES', false);  

    define('PERCH_DEFAULT_EXT', '.html');

    define('PERCH_CUSTOM_EDITOR_CONFIGS', true);


    Is our problem at define('PERCH_CLEAN_RESOURCES', false); ?

    Should I make that define('PERCH_CLEAN_RESOURCES', true); ?? (edited)

  • I believe that the default for "Mark As Library Asset" is unchecked. See https://docs.grabaperch.com/perch/control-panel/assets/ so it would seem that your site is doing something differently.

    PERCH_CLEAN_RESOURCES determines whether non-library assets are cleaned up. I think that is different to what you want. See https://docs.grabaperch.com/perch/configuration/file/

  • Thanks. It's a shame the documentation is in many cases neither clear nor comprehensive enough for the average user to be able to use reliably. Here's hoping the new owners will adopt a more embracing attitude towards providing directly usable information for the averagely technical person.

  • Quote

    Currently the box 'Mark as library asset' is ticked for every new asset entered.

    Could be a browser issue. Definitely try a different browser and see if the box is checked when adding a new asset.

    In regards to the config setting "PERCH_CLEAN_RESOURCES", whether it's true or false has no influence on the default status of the "mark as library asset" checkbox. At least on my installation when I tested, the checkbox is always unchecked regardless of the config file setting.

    Funny thing is I just quickly googled, and found a post from you, Stefan from 7 years ago, which is why your config file had the clean_resources setting to false! You were troubleshooting a different issue... :-)