PHP code example of dd / evolutioncms-plugins-managermanager-mm_ddselectdocuments
1. Go to this page and download the library: Download dd/evolutioncms-plugins-managermanager-mm_ddselectdocuments 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/ */
dd / evolutioncms-plugins-managermanager-mm_ddselectdocuments example snippets
mm_ddSelectDocuments([
// TV for which the widget is applied to
'fields' => 'favoriteProducts',
// Let 314 is ID of catalog document, that contains children-products
'parentIds' => [314],
// Search in 3 levels
'depth' => 3,
// Display only published documents with template ID == 42
'filter' => 'template=42&published=1',
// Only 3 or less products can be selected
'maxSelectedItems' => 3,
]);