Commit afca8580 authored by Andy Hausmann's avatar Andy Hausmann

Added language labels, documentation and more.

parent 330ad6e2
......@@ -19,24 +19,43 @@ plugin.tx_flexslider {
# String: Select the sliding direction, "horizontal" or "vertical"
slideDirection = horizontal
# Boolean: Animate slider automatically
slideshow = false
slideshow = 0
# Integer: Set the speed of the slideshow cycling, in milliseconds
slideshowSpeed = 7000
# Integer: Set the speed of animations, in milliseconds
animationDuration = 600
# Boolean: Create navigation for previous/next navigation? (true/false)
directionNav = true
directionNav = 1
# Boolean: Allow slider navigating via keyboard left/right keys
keyboardNav = 1
# Boolean: Allow slider navigating via mousewheel
mousewheel = 0
# Boolean: Create pause/play dynamic element
pausePlay = false
pausePlay = 0
# Boolean: Randomize slide order
randomize = false
randomize = 0
# Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
animationLoop = true
animationLoop = 1
# Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
pauseOnHover = false
pauseOnHover = 0
}
}
/*
* Localization via TS
*/
plugin.tx_flexslider._LOCAL_LANG.default {
//prevText =
//nextText =
//pauseText =
//playText =
}
/*
* Styles injection via TS
*/
plugin.tx_flexslider._CSS_DEFAULT_STYLE (
)
\ No newline at end of file
......@@ -17,7 +17,7 @@ Install by Extension Manager as usual
Currently this Extension isn't available through TER. The Extension key 'flexslider' has already been reserved for this Extension. If it reaches a stable state, it will be uploaded immediately.
## Configure
## Configuration
* Include **static Extension Template**
* Create **Frontend plugin**
......@@ -85,6 +85,25 @@ _This section isn't completed yet._
}
### Language Overrides
Use the following TS Setup Object Path to override localizations.
plugin.tx_flexslider._LOCAL_LANG.en {
languageLabel = value
}
### Further stuff
Take a look at
* /Configuration/Typoscript/constants.txt
* /Configuration/Typoscript/setup.txt
to get further infos about settings and language labels.
## How to
### … use the Plugin in a Library
......
......@@ -4,12 +4,12 @@
<f:section name="main">
<f:flashMessages />
<fs:AddJQuery altJQueryFile="{settings.lib.jQuery}" />
<fs:AddCssJs file="{settings.lib.flexslider}" moveToFooter="{settings.lib.moveToFooter}" />
<fs:AddCssJs file="{settings.css}" />
<f:flashMessages />
<script type="text/javascript">
<![CDATA[
$(window).load(function() {
......@@ -21,11 +21,13 @@ $(window).load(function() {
slideshowSpeed: <f:if condition="{settings.slideshowSpeed} > 0"><f:then>{settings.slideSpeed}</f:then><f:else>7000</f:else></f:if>,
animationDuration: <f:if condition="{settings.animationDuration} > 0"><f:then>{settings.animationDuration}</f:then><f:else>600</f:else></f:if>,
directionNav: <f:if condition="{settings.directionNav} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
keyboardNav: <f:if condition="{settings.keyboardNav} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
mousewheel: <f:if condition="{settings.mousewheel} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
prevText: "<f:translate key="prevText">vor</f:translate>",
nextText: "<f:translate key="nextText">weiter</f:translate>",
pausePlay: <f:if condition="{settings.pausePlay} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
pauseText: "<f:translate key="pauseText">vor</f:translate>",             //String: Set the text for the "pause" pausePlay item
playText: "<f:translate key="playText">vor</f:translate>",               //String: Set the text for the "play" pausePlay item
pauseText: "<f:translate key="pauseText">vor</f:translate>",
playText: "<f:translate key="playText">vor</f:translate>",
randomize: <f:if condition="{settings.randomize} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
animationLoop: <f:if condition="{settings.animationLoop} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
pauseOnHover: <f:if condition="{settings.pauseOnHover} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment