dev-master
9999999-dev http://devp.eu/Module Gallery for TMCms
proprietary
The Requires
module gallery tmcms
Wallogit.com
2017 © Pedro Peláez
Module Gallery for TMCms
Module Gallery for TMCms, (*1)
Module adds image gallery functionality as separate module AND as possibility to auto-create internal galleries for every Entity presented in any other module, e.g. Products, Articles, etc., (*2)
Create Gallery column, (*3)
// Data for table
...
$product = new ProductEntity();
$entity_class = strtolower(Converter::classWithNamespaceToUnqualifiedShort($product));
$images = new ImageEntityRepository();
$images->setWhereItemType($entity_class);
...
// Table Helper
...
'columns' => [
...,
'gallery' => [
'type' => 'gallery',
'images' => $images,
],
...,
],
...
And add method for managing gallery images in CmsClass, (*4)
...
public function images()
{
$product_id = ... // whatever you need
$product = new ProductEntity($product_id);
echo ModuleGallery::getViewForCmsModules(product);
}
Module Gallery for TMCms
proprietary
module gallery tmcms