Zum Inhalt springen

Lightbox config soll durch Flexform Vars geändert werden

Erstellt am 11. März 2010 · Noch keine Antworten

Tags: FlexForms, Bilder, Frage

master celebrator ·

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:

//
//  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 || {});