{{indexmenu_n>10}} ====== Slider ====== ===== Simple image slider with template- and CSS files ===== **Conditionals:** mootools 1.1.x ore mootools 1.2.x \\ \\ ==== Frontend output ==== {{:english:phpwcms-system:article:contentparts:images-special:slider_new.png|FE output: slider}} ==== Backend ==== LightBox: on, Effect 1/3: on, cropping thumb 95x115: on {{:english:phpwcms-system:article:contentparts:images-special:be_img_spez_slider_en.gif?80|Backend}} \\ ==== Template mootools V1.1.x ==== ** ///template/inc_cntpart/imagespecial/slider_new_11x.tmpl// ** [TITLE]

{TITLE}

[/TITLE] [SUBTITLE]

{SUBTITLE}

[/SUBTITLE] [TEXT]{TEXT}[/TEXT] [EFFECT_1][Ich bin der Effekt 1] : [/EFFECT_1] [EFFECT_2][Ich bin der Effekt 2] : [/EFFECT_2] [EFFECT_3][Ich bin der Effekt 3]
[/EFFECT_3]
[ZOOM]{CAPTION}
{INFOTEXT}
[/ZOOM][ZOOM_ELSE] [IMAGE_URL][/IMAGE_URL]{THUMB_NAME}[IMAGE_URL][/IMAGE_URL] [/ZOOM_ELSE]
« Left « | » Right » [PHP] $GLOBALS['block']['css']['slider_{ID}'] = 'specific/slider_new.css'; $GLOBALS['block']['custom_htmlhead']['slider_{ID}'] = ' '; [/PHP]
==== Template mootools V1.2.x ==== Using mootools V1.2.x we must enhanced this script with \\ Fx.Scroll.implement({ scrollTo: function(y, x){ return this.start(y, x); } }); and all \\ getSize().size replaced with \\ getSize() **Update 15.06.2010 KH:** \\ * Line in [ZOOM_ELSE ]....[/ ZOOM_ELSE] corrected, as in the JS on " [TITLE]

{TITLE}

[/TITLE] [SUBTITLE]

{SUBTITLE}

[/SUBTITLE] [TEXT]{TEXT}[/TEXT] [EFFECT_1][Ich bin der Effekt 1] : [/EFFECT_1] [EFFECT_2][Ich bin der Effekt 2] : [/EFFECT_2] [EFFECT_3][Ich bin der Effekt 3]
[/EFFECT_3]
[ZOOM]{CAPTION}
{INFOTEXT}
[/ZOOM][ZOOM_ELSE] {THUMB_NAME} [/ZOOM_ELSE]
« Left « | » Right » [PHP] $GLOBALS['block']['css']['slider_{ID}'] = 'specific/slider_new.css'; $mootools_more = array( 'Fx/Fx.Scroll' ); // Loading more and FX.Scroll lib initJSPlugin($mootools_more, true); $GLOBALS['block']['custom_htmlhead']['slider_{ID}'] = ' '; [/PHP] \\ ==== CSS ==== ** ///template/inc_css/specific/slider_new.css//** div.slider { margin: 10px 0 10px 0; padding: 5px 0 5px 0; background-color: #888; overflow: hidden; width: 323px; position: relative; height: 146px; } div.slider .thumb_capture p { font-size: 9px; color: #444; background: #ddd; min-height: 25px; } div.slider div.inner { margin: 0; padding: 0; list-style: none; height: 146px; width: 700px; position: absolute; left: 0; top: 5px; } div.slider div.inner a { border: 3px solid #FFFFFF; padding: 0; float: left; background-color: #000000; margin: 0 0 0 5px; } div.slider div.inner a:hover { border: 3px solid #cfe9ff; text-decoration: none; } div.slider div.inner a img { width: 95px; } \\ ===== {INFOTEXT} & LightBox ===== The tag **{LIGHTBOX_CAPTION}** is containing the delivery rule for the LightBox: \\ **title="my text for the LightBox"**(However in a special formatting syntax called ([[http://www.w3schools.com/tags/ref_entities.asp |HTML-Entities]]) -> **<**br /**>** will become **<**br /**>**). Thus if e.g. the INFOTEXT is used with the Lightbox it became: [ZOOM] change to [ZOOM] technical: \\ ---- The correct form would be (INFOTEXT does not work, so we use INFOHTML): [ZOOM] ---- \\ Please have a look at the added blank between ......**''title="{INFOTEXT}"## ##target="''**........