express
Le nouveau module génial de concrete5, qui vous permet de gérer des bases de données relationnelles en deux coup de cuillère à pot!
ad hocDoc
Import
Programmatically Update Option List for Express Object Attribute
Creating Express Objects programmatically
https://www.concrete5.org/community/forums/customizing_c5/creating-express-objects-programmatically/
Express Form Theming
Extraire des valeurs express
$c = Page::getCurrentPage(); // Concrete\Core\Entity\Attribute\Value\Value\ExpressValue $testExpressValue = $c->getAttribute('test_express'); if ($testExpressValue) { // array of Concrete\Core\Entity\Express\Entry $testExpressEntryArray = $testExpressValue->getSelectedEntries(); // Concrete\Core\Entity\Express\Entry $testExpressEntry = $testExpressEntryArray[0]; // array of Concrete\Core\Entity\Attribute\Value\ExpressValue $attributes = $testExpressEntry->getAttributes(); foreach ($attributes as $attribute) { // Concrete\Core\Entity\Attribute\Value\ExpressValue echo '<p>' . $attribute->getAttributeKey()->getAttributeKeyName() . ': ' . $attribute->getDisplayValue() . '</p>'; } }
For anyone trying to work with images in Express objects:
$photoFileObject = $entry->getImageAttributeHandle(); if (is_object($photoFileObject)) { $photoFileObjectVersion = $photoFileObject->getVersion(); $photoRelativePath = $photoFileObjectVersion->getRelativePath(); }
source: https://www.concrete5.org/community/forums/customizing_c5/get-express-values-from-page-attribute/
Tools perso
Des outils express libres fait avec mes petites pognes
c5ExpressPublications
Une bibliographie toute simple aka personnaliser l'affichage des données:
C5ContactExpress
A package to import a vcf/csv adressbook into concrete5's express