.. -*- coding: utf-8 -*- with BOM. .. include:: ../../Includes.txt Templating ^^^^^^^^^^ This extension uses Extbase / Fluid default functionality for templating, even though, there is come custom configuration to handle gallery types. So by default, TYPO3 will search in the default template root path of the extension: `EXT:generic_gallery/Resources/Private/Templates/GalleryCollection/Show.html` If you change the template path like this: `plugin.tx_genericgallery.view.templateRootPaths.0 = EXT:my_extension/Resources/Private/Templates/GenericGallery/`, TYPO3 will search for `EXT:my_extension/Resources/Private/Templates/GenericGallery/GalleryCollection/Show.html`. **How to configure the template file for each gallery type** This extension allows to define multiple gallery types. Each gallery type needs a custom template file. To accomplish this, there are two TypoScript settings: `template` and `templateItem` (used for the item detail view) You can change the path for each gallery type by using the following TS: `plugin.tx_genericgallery.settings.gallery.myGalleryType.template = EXT:my_extension/Resources/Private/Templates/SomeFolder/SomeFile.html` See the example TypoScript files for more info! .. tip:: When using more than one gallery type, you should always use `template` (and `templateItem`) TS settings in order to configure the template file for each gallery type! .. _configuration-template: Available variables """"""""""""""""""" - `uid`: current plugin content element UID (localized) - `galleryType`: current plugin gallery type (single, images, collection) - `data.content`: current plugin content element data - `data.page`: current page data - `data.pageLayout`: current page layout - `data.pageBackendLayout`: current page backend layout - `item`: Single image item in detail view - `collection`: Image collection array in list view ViewHelpers """"""""""" **ForGroup** A pair of ViewHelpers to assist you when building groups of items. **Example** .. code-block:: xml Result: .. code-block:: xml