PHP code example of fiedsch / vereinsverwaltung-bundle

1. Go to this page and download the library: Download fiedsch/vereinsverwaltung-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

fiedsch / vereinsverwaltung-bundle example snippets




/* 
 * modify palette remove unused fields
 */

foreach (['company', 'state', 'country', 'fax', 'website', 'language', 'assignDir'] as $field) {
    $GLOBALS['TL_DCA']['tl_member']['palettes']['default']
        = str_replace(",$field", '', $GLOBALS['TL_DCA']['tl_member']['palettes']['default']);
    // also remove these fields from the search,sort,filter, panel
    foreach (['search', 'sorting', 'filter'] as $paletteOption) {
        $GLOBALS['TL_DCA']['tl_member']['fields'][$field][$paletteOption] = false;
    }
}

/*
 * Do not remove from palette, but disable search, sort, and filter 
 */
foreach (['search', 'sorting', 'filter'] as $paletteOption) {
  $GLOBALS['TL_DCA']['tl_member']['fields']['login'][$paletteOption] = false;
}