PHP code example of xanweb / c5-foundation

1. Go to this page and download the library: Download xanweb/c5-foundation 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/ */

    

xanweb / c5-foundation example snippets


return [
    /*
     * Importer processors
     */
    'import_processors' => [
        'xw.image.data_extractor' => \Xanweb\C5\Foundation\File\Import\Processor\DataExtractor::class,
    ],
];
 
[
    'image_title' => 'title', // mapped to file title property
    'comments' => 'description', // mapped to file description property
    'keywords' => 'tags', // mapped to file tags property
]



return [
    'file_manager' => [
        'images' => [
            'data_extractor' => [
                'image_title' => ['title', 'ak_alt'], // You can use multiple properties/attributes per field.
                'comments' => 'description',
                'keywords' => 'tags',
                'author_title' => 'ak_author', // Use 'ak_' prefix for attributes.
                'copyright' => 'ak_copyright',
            ]
        ],
    ],
];