georgringer / news-gallery
Add possibilities for galleries in a news record
Installs: 83
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:typo3-cms-extension
Requires
- georgringer/news: ^6.0
- typo3/cms-core: ^7.6.13 || >=8.5.0 <9
Replaces
- news_gallery: 4.0.2
- typo3-ter/news-gallery: 4.0.2
README
About
This extension provides an easy way to file collections to a news record. There are various types of file collections like:
- Static selection of files
- Folder from storage
- Select by category
Requirements
- TYPO3 8.7 - 9.5
- Extension "news" 6.0.0-7.9.99
Screenshots
How to use
Using this extension is simple! Follow this steps:
Creating the records
- Install the extension. You can get it either from the TER or from Github
- Create a new record "File collection" and define some images.
- Create a news record or open an existing one, switch to the tab "Relations" and add the previously created record in the new relation.
Adopt the template
To be able to show the images you need to alter the templates.
1st of all add the namespace declaration at the top of the template:
{namespace ngallery=GeorgRinger\NewsGallery\ViewHelpers}
This is just an example snippet which outputs all images of the file collection in a basic list:
<ngallery:render collections="{newsItem.txGalleryCollections}" storage="{newsItem.txGalleryStorage}" folder="{newsItem.txGalleryFolder}" as="gallery"> <f:debug>{gallery}</f:debug> </ngallery:render>
Note
You can use the gallery in any action of the news extension. No matter if List.html, Detail.html or anything else.