This extension was written to speed up development of different kinds
of Java-Script driven galleries, slideshows or interactive teasers.
It's possible to define multiple galleries with TypoScript and HTML Templates.
These gallery types could be easily changed with a selectbox within the plugin content element.
Features
One plugin for every kind of picture gallery / teaser slider
Single item support (with title, link and positioned descriptions)
Multiple images support
Image collection support
Image detail view
Routing (speaking URLs) for detail view and pagination
Makes use of TYPO3 built-in image cropping
Easy templating
EXIF and IPTC support
All properties provided by FAL could be used
Comes with a nice preview in page module
Twitter Bootstrap Examples (version 3 and 4)
TYPO3 Linkhandler support
Screenshots
No screenshots as this extension works with almost every possible HTML / Java-Script construction.
Take a look at the examples.
Add one of the Generic Gallery: Example - Bootstrap static TS template files to your root template.
This will add a Twitter Bootstrap themed Image Slider and Teaser Slider to your predefined galleries.
Feel free to use the constant editor (go to: module template, root page,
constant editor, generic_gallery) to edit this settings. Add a TypoScript
template to overwrite these settings at any point in your site tree(s).
Define a template file for this gallery type.
Use something like EXT:my_extension/Resources/Private/Templates/SomeFolder/SomeFile.html
If not set, the Extbase's default behavior will be used:
TYPO3 uses the template root path from plugin.tx_genericgallery.view.templateRootPaths and adds GalleryCollection/Show.html to it.
Define a detail view template file for this gallery type.
Use something like EXT:my_extension/Resources/Private/Templates/SomeFolder/SomeFile.html
If not set, the Extbase's default behavior will be used:
TYPO3 uses the template root path from plugin.tx_genericgallery.view.templateRootPaths and adds GalleryItem/Show.html to it.
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!
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.
<ulclass="colors"><liclass="span6"style="color: red;>
red
</li>
<li class="span6" style="color: green;>
green
</li>
</ul>
<ul class="colors"><liclass="span6"style="color: blue;>
blue
</li>
<li class="span6" style="color: yellow;>
yellow
</li>
</ul>
Copied!
FAL Metadata
Use the imageData property for image meta data. The imageData array provides the FAL meta data merged
with inline file reference meta data. In addition imageData processes some EXIF meta data to be more usable
(some properties are transformed into a human readable format).
Use item.image.properties for raw FAL meta data.
Tip
Which meta data is available depends on your installation and extensions.
You need to install EXT:filemetadata and use an extension like EXT:metadata or similar to extract the
meta data from your files and make it available via FAL properties.
See Available variables for more information on how to use the meta data in your templates.
How to add existing collections
It's possible to disable inline editing of collection records in the plugin.
Disable use_inline_collection in the site settings (setup module) or extension manager (before version 8).
This extension adds some default page TsConfig in order to config the needed fields, see:
/Configuration/TypoScript/pageTsConfig.ts
Preview is cropped / has overflow:hidden
This is a problem because of the Busy Noggin Framework
(EXT:templavoila_framework ). It adds a BE CSS file
(typo3conf/ext/templavoila_framework/core_templates/css/backend.css)
which sets an overflow: hidden and height: 45px to all previews. Just
copy that file, change it and add following to your pageTS:
Migrated some extension manager configuration to site settings
Lots of fixed deprecations
Minor improvements
How to upgrade
Migrate extension manager configuration to site settings
Following EM configuration settings have been migrated, please adjust your setup accordingly:
`hide_relations`
enable_type_items `enable_type_images`
enable_type_collection
Clear all caches
Version 7
Update to 7.1.0
Overview
Add support for PHP 8.4
Migrated the plugin to a custom content element type
Fixed and improved image detail view route mapping
Pagination is now content element aware
Migrated docs to PHP rendering
Refactored BE preview
Improved TCA configuration
Lots of fixed deprecations
Minor improvements
How to upgrade
Use provided upgrade wizard in "Upgrade" BE module to migrate existing plugins to content elements
Update routing configuration (optional, when using image detail view)
Removed TypoLink ViewHelper -> use EXT:fluid default instead
GalleryCollection now inherits ObjectStorage -> easier usage in Fluid (e.g. paginate VH)
Added pagination to default gallery template
Removed Bootstrap JS & CSS file include from Bootstrap example configuration
Added new content element wizard for extension plugin
How to upgrade
Update your templates and TypoScript if needed. Clear the cache using install tool.
Version 1
Update from 1.4.1 to 1.4.3
Overview
Fixed documentation rendering
Fix for use with TemplaVoila
Fix for backend preview (page module)
How to upgrade
Just clear the cache.
Update from 1.4.0 to 1.4.1
Overview
Bugfix for multiple plugins on one page (when using item detail action)
Improved TCA and extension configuration (adjusted to match latest TYPO3 API, thanks to Markus Klein!)
Fixed composer.json and added correct PHP dependency (thanks to Markus Klein!)
Small improvements to built in templates
How to upgrade
Just clear the cache and check your templates. You may need to clear cache in install tool or even re-install the
extension in case you experiencing issues with backend forms!
Make sure to use new detail action link argument contentElement:
<f:link.action action="show" controller="GalleryItem" arguments="{item: item.uid, contentElement: uid}"></f:link>
Update from 1.3.x to 1.4.0
New features overview
Bugfix for "Merge FAL file meta data with file reference data"
Support for TYPO3 link validator
Use built-in image cropping (since TYPO3 7.2)
How to upgrade
Just clear the cache and check your templates. Make sure to use new image rendering condition:
<f:image image="{f:if(condition: '{item.imageReference}', then: '{item.imageReference}', else: '{item.image}')}" />
Update from 1.2.x to 1.3.0
New features overview
TYPO3 7.6 compatibility
Merge FAL file meta data with inline meta data (file reference)
How to upgrade
Just clear the cache and check your templates. Make sure to use {item.imageData.description} instead of
{item.image.properties.description} when you want to use merged meta data.
Update from 1.1.0 to 1.2.0
New features overview
TYPO3 7.4 compatibility
Improve and fix examples
Update examples to Twitter Bootstrap 3.3.5
How to upgrade
Just clear the cache.
Update from 1.0.x to 1.1.0
New features overview
TYPO3 7.x compatibility
Better backend previews (for example collection image preview)
How to upgrade
Just clear the cache in install tool.
Update from 0.4.x to 1.0.x
New features overview
Migration from pibase to extbase / fluid
Better FAL support
Image detail view
Image collection support
Twitter Bootstrap Examples
How to upgrade
First of all you need to upgrade TYPO3 to 6.x and migrate all DAM
records to FAL. This task exceeds the scope of this documentation.
Update via Extension Manager
Run update script in Extension Manager
Adjust TypoScript
Change TypoScript path
from plugin.tx_genericgallery_pi1.gallery
to plugin.tx_genericgallery.settings.gallery
Change gallery settings to new specification
Update your templates to match fluid structure
See demos: /Configuration/TypoScript/Examples
Tip
Since version 1.0.0 Generic Gallery uses fluid as templating engine.
This means you will need to recreate your templates when updating from previous versions.
It's still possible to use grouped elements. For example four items wrapped in a <div>.
There's a view helper for that.
Tip
You will need to install EXT:filemetadata and EXT:metadata in order to use EXIF data
Version 0
Update from 0.3.x to 0.4.0
First of all you need to upgrade TYPO3 to 6.x and migrate all DAM
records to FAL. This task exceeds the scope of this documentation.
You will need to install EXT:filemetadata and EXT:metadata
Generic Gallery itself needs no DB migration but you will need to
update yours TS and templates.
All ###DAM_* marker have been removed. Use custom markers instead.
Update from 0.3.3 to 0.3.4
Please make sure your non admin BE users still have access to all
fields. You might need to change permissions of your BE user group.
Update from 0.3.2 to 0.3.3
As there has been some changes to the RTE (IRRE description field)
processing you probably need to link your hyperlinks within the RTE
text again. At least if you like to have proper (RealUrl aware) links
and not wrong ones like: http://domain.com/index.php?id=123
Update from 0.2.0 to 0.3.0
Some template marker have changed to match extension marker naming
more precise:
###WIDTH### to ###IMAGE_WIDTH###
###HEIGHT### to ###IMAGE_HEIGHT###
No other changes necessary, but recommended (TS option marker is
more useful than damMarker ).