DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Simple image gallery management¶
Author: | Christopher |
---|---|
Created: | 2010-12-18T19:57:23 |
Changed by: | Matthias Toscanelli |
Changed: | 2013-08-23T15:28:19 |
Classification: | cdsrc_gallery |
Description: | The keywords help with categorizing and tagging of the manuals. You can combine two or more keywords and add additional keywords yourself. Please use at least one keyword from both lists. If your manual is NOT in english, see next tab "language" ---- forEditors (use this for editors / german "Redakteure") forAdmins (use this for Administrators) forDevelopers (use this for Developers) forBeginners (manuals covering TYPO3 basics) forIntermediates (manuals going into more depth) forAdvanced (covering the most advanced TYPO3 topics) ---- |
Keywords: | gallery, based on folders, forEditors, forIntermediates |
Author: | Matthias Toscanelli |
Email: | m.toscanelli@code-source.ch |
Language: | en |
Simple image gallery management¶
Extension Key: cdsrc_gallery
Language: en
Version: x.y.z
Keywords: gallery, based on folders, forEditors, forIntermediates
Copyright 2013, Matthias Toscanelli, <m.toscanelli@code-source.ch>
This document is published under the Open Content License
available from http://www.opencontent.org/opl.shtml
The content of this document is related to TYPO3
- a GNU/GPL CMS/Framework available from www.typo3.org
Table of Contents¶
`Simple image gallery management 1 <#__RefHeading__5708_1738894311>`_
`Introduction 3 <#__RefHeading__5710_1738894311>`_
`Users manual 4 <#__RefHeading__467_413120346>`_
`Administration 6 <#__RefHeading__31511_818911409>`_
`Configuration 7 <#__RefHeading__31515_818911409>`_
`To-Do list 8 <#__RefHeading__477_413120346>`_
Introduction¶
What does it do?¶
This extension provide the possibility to add many meta informations for folders and images. Everything meta informations are stored in files, so it's easy to edit them with FTP.
Screenshots¶
Module to edit meta informations in TYPO3 back-end :
Module to edit available meta informations for a folder and his folders/files :
Users manual ------------
Include the static TypoScript in your Template
Create a new content-element => plugin “Gallery”
You will see an input-field:
Administration --------------
Installation¶
Download the extension and install it with the extension manager, no specific configuration is required.
Include the static Typoscript in your template
Configuration¶
Reference¶
plugin.tx_cdsrcgallery_pi1
stdWrap¶
Property
stdWrap
Data type
stdWrap
Description
Wraps the whole galleries.
Default
folder¶
Property
folder
Data type
cObj
Description
Folder rendering
Default
file¶
Property
file
Data type
cObj
Description
File rendering
Default
Example¶
This is a very simple example of rendering (c.f.: static template):
plugin.tx_cdsrcgallery_pi1{
stdWrap.wrap = |
folder = CASE
folder{
key = 1
key.if.isFalse.field = depth
default = COA
default{
wrap = <div class="category">|</div>
10 = COA
10{
wrap = <figure class="image">|</figure>
10 = IMAGE
10{
file.import.field = image
altText.field = field_0
altText.ifEmpty.field = basename
titleText.field = field_0
titleText.ifEmpty.field = basename
}
20 = TEXT
20{
wrap = <figcaption>|</figcaption>
field = field_0
ifEmpty.field = basename
}
}
20 = TEXT
20{
wrap = <div class="sub-categories">|</div>
field = folders
}
30 = TEXT
30{
wrap = <figure class="images">|</figure>
field = files
}
}
1 = TEXT
1{
wrap = <div class="categories">|</div>
field = folders
}
}
file = IMAGE
file{
file.import.field = path
altText.field = field_0
altText.ifEmpty.field = basename
titleText.field = field_0
titleText.ifEmpty.field = basename
}
}
Available fields¶
For folders:
basename¶
Field
basename
Description
The basename of the folder
path¶
Field
path
Description
The relative path to PATH_site
folders¶
Field
folders
Description
Rendered sub-folders
files¶
Field
files
Description
Rendered sub-files
depth¶
Field
depth
Description
Depth of the folder relative to root (0)
parentindex¶
Field
parentindex
Description
Unique index of the parent folder
dirindex¶
Field
dirindex
Description
Unique index of the current folder
index¶
Field
index
Description
Numeric index of the current folder (ex: 0, 1, 2, ...)
image¶
Field
image
Description
A random image picked in all sub-files recursively
ifolders¶
Field
ifolders
Description
Comma-separated sub-folders
ifiles¶
Field
ifiles
Description
Comma-separated sub-files
field_0¶
Field
field_0
Description
Name of the folder (always exists)
basename¶
Field
basename
Description
The basename of the image
dirname¶
Field
dirname
Description
The basename of the parent folder
path¶
Field
path
Description
The relative path to PATH_site
name¶
Field
name
Description
The basename without the extension
extension¶
Field
extension
Description
The extension of the file
dirindex¶
Field
dirindex
Description
Unique index of parent folder
index¶
Field
index
Description
Numeric index of the current
field_0¶
Field
field_0
Description
Name of the folder (always exists)
field_#¶
Field
field_#
Description
All others meta-informations
To-Do list¶
Configure file's extensions specific for a specific folder
Configure file's names used to store meta-informations