Images for any data object
composer require "webmaxsk/maximages:*"
You can add images to any Page via CMS. You can disable images for any Page subclass by adding config to _config/config.yml:
SilverStripe\ErrorPage\ErrorPage:
images:
enabled: false
SilverStripe\CMS\Model\VirtualPage:
images:
enabled: false
SilverStripe\CMS\Model\RedirectorPage:
images:
enabled: false
The maximum number of images can be also specified in the config using the following syntax (default is 20 for a page):
SilverStripe\Blog\Model\BlogPost:
images:
count: 50
You can add images to any DataObject too, just extend DataObject with ObjectImagesExtension.
Add images to your template
<% if SortedImages %>
<ul class="small-block-grid-3">
<% loop SortedImages %>
<li>
<a href="$Link" title="$Title">
$CroppedImage(200,200)
</a>
</li>
<% end_loop %>
</ul>
<% end_if %>
Add any lightbox you like, it is not included in this module!
check https://github.com/Webmaxsk/silverstripe-intranet-plate
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem