PHP code example of heimrichhannot / contao-location-bundle

1. Go to this page and download the library: Download heimrichhannot/contao-location-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/ */

    

heimrichhannot / contao-location-bundle example snippets


$dca['tl_news']['fields']['locations'] = [
    'inputType' => 'picker',
    'relation' => ['type' => 'hasOne', 'load' => 'eager', 'table' => 'tl_location'],
    'eval' => [
        'multiple' => true, //
        'tl_class' => 'w50 clr autoheight'
    ],
    'sql' => 'blob NULL',
]