\HeaderGalleryExtension
StartGeneratedWithDataObjectAnnotator
Synopsis
class HeaderGalleryExtension
extends DataExtension
{
- // members
- private static array $has_many = ;
- private static integer $limit_header_images = 0;
- private static string $delete_permission = "CMS_ACCESS_CMSMain";
- // methods
- public void updateCMSFields()
- public null|void getHeaderPics()
- public void getGalleryOwner()
- public void getGalleryOfParent()
- public DataList|null|SS_Limitable getDefaultHeaderPics()
- protected DataList|SS_Limitable LimitGalleryItems()
Hierarchy
Extends
- DataExtension
Members
private
- $delete_permission
- $has_many
- $limit_header_images
—
int
Limit the number of displayed header images If set to 1 we have a single upload field
Methods
protected
- LimitGalleryItems() — limits the number of displayed items
public
- getDefaultHeaderPics() — Helper to get the default header pics from e.g. SiteConfig
- getGalleryOfParent()
- getGalleryOwner()
- getHeaderPics() — Helper for getting the header gallery in the template Tries to find the current gallery, falls back to parent pages and home-page or SiteConfig if it has a standard gallery
- updateCMSFields()