PHP code example of alnv / catalog-manager-bundle

1. Go to this page and download the library: Download alnv/catalog-manager-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/ */

    

alnv / catalog-manager-bundle example snippets

 php
<div class="cm-refrence-list block">
     foreach ($this->entities as $arrEntity): 
 php

use Contao\Date;
$arrEvent = $this->getParent();
$strUrl = array_values($arrEvent['pages'])[0]['master'] ?? '';
 php
<?= $this->getContentElements() 
 php
 
    use Alnv\ContaoCatalogManagerBundle\Library\Watchlist;
 php
 
$arrEntities = $this->getRelated('myfieldname');
 $this->getParent() 
 php

use Alnv\ContaoTranslationManagerBundle\Library\Translation;
 php

use Alnv\ContaoTranslationManagerBundle\Library\Translation;
 php
 // Beim Upload-Eingabefeld haben wir den Feldname "images" gewählt, daher $this->images 
 php
 

use Alnv\ContaoCatalogManagerBundle\Views\Listing;

$arrEntities = (new Listing('<DEINE-CM-TABELLE>', [
  'column' => ['pid=?'], // Hier kannst du deine Wunschabfrage hinterlegen.
  'value' => [$this->id], // Hier die Datenbankwerte je Abfrage.
  'order' => 'startDate DESC', // Reihenfolge
  'masterPage' => "<SEITEN-ID" // Optional
]))->parse();

 foreach ($arrEntities as $arrEntity):