TYPO3-Testaccount
Testen Sie die aktuellste TYPO3-Version kostenlos und unverbindlich für einen Monat!

Jetzt testen!

Schulungen

Lightbox config soll durch Flexform Vars geändert werden


Autor Nachricht
Verfasst am: 11. 03. 2010 [16:22]
master celebrator
Dabei seit: 05.03.2007
Beiträge: 78
Hi Leute,

ich habe ein Lightbox galerie Plugin geschrieben.
Eingestellt wird alles per Flexform im Plugin (Bilder/Settings).

Flexform Variablen auslesen und lightbox js ins html einbinden tue ich über die pi klasse.
Problem:
Wie kann ich nun die Variablen um zb. die Resizespeed zu ändern aus der pi Klasse an das Lightbox.js schicken?

Stani Config aus Lightbox.js:
PHP
//
//  Configurationl
//
LightboxOptions = Object.extend({
	fileLoadingImage:        'typo3conf/ext/fx_galerie/res/lightbox/images/loading.gif',     
	fileBottomNavCloseImage: 'typo3conf/ext/fx_galerie/res/lightbox/images/closelabel.gif',
 
	overlayOpacity: 0.8,   // controls transparency of shadow overlay
 
	animate: true,         // toggles resizing animations
	resizeSpeed: 7,        // controls the speed of the image resizing animations (1=slowest and 10=fastest)
 
	borderSize: 10,         //if you adjust the padding in the CSS, you will need to update this variable
 
	// When grouping images this is used to write: Image # of #.
	// Change it for non-english localization
	labelImage: "Image",
	labelOf: "of"
}, window.LightboxOptions || {});


AS3 - TYPO3
Profil