Hi Jon,
ich habe genau das gleiche leidige Problem und habe dafür ein Hack:

Ab circa Zeile 186 in der Datei class.ux_tslib_content.php (innerhalb 
der Extension directory) habe ich folgendes gemacht:

// create the imagelink
// $theValue = '<a 
href="'.htmlspecialchars($GLOBALS['TSFE']->absRefPrefix.t3lib_div::rawUrlEncodeFP($newinfo[3])).'"
 
rel="lightbox'.$imgSet.'" title="'.$cap[$this->singleCaption].'" 
id="'.$this->singleCaption.'" showNumberDisplay="'.$hideNumberDisplay.'" 
kjtag="'.$imageToolbar.''.($this->data['tx_kjimagelightbox2_presentationmode'] 
? '' : $cap[$this->singleCaption]).'"><img 
src="'.htmlspecialchars($GLOBALS['TSFE']->absRefPrefix.t3lib_div::rawUrlEncodeFP($info[3])).'"
 
width="'.$info[0].'" height="'.$info[1].'"'.$this->getBorderAttr(' 
border="'.intval($conf['border']).'"').($conf['params']?' 
'.$conf['params']:'').($altParam).' /></a>';
// $this->singleCaption++;

if ($GLOBALS['TSFE']->previousImageUID == $this->data['uid'])
        $theValue = '<a 
href="'.htmlspecialchars($GLOBALS['TSFE']->absRefPrefix.t3lib_div::rawUrlEncodeFP($newinfo[3])).'"
 
style="display: none;" rel="lightbox'.$imgSet.'" 
title="'.$cap[$this->singleCaption].'" id="'.$this->singleCaption.'" 
showNumberDisplay="'.$hideNumberDisplay.'" 
kjtag="'.$imageToolbar.''.($this->data['tx_kjimagelightbox2_presentationmode'] 
? '' : $cap[$this->singleCaption]).'"><img 
src="'.htmlspecialchars($GLOBALS['TSFE']->absRefPrefix.t3lib_div::rawUrlEncodeFP($info[3])).'"
 
width="'.$info[0].'" height="'.$info[1].'"'.$this->getBorderAttr(' 
border="'.intval($conf['border']).'"').($conf['params']?' 
'.$conf['params']:'').($altParam).' /></a>';
else {
        $this->singleCaption = 0;
        $theValue = '<a 
href="'.htmlspecialchars($GLOBALS['TSFE']->absRefPrefix.t3lib_div::rawUrlEncodeFP($newinfo[3])).'"
 
rel="lightbox'.$imgSet.'" title="'.$cap[$this->singleCaption].'" 
id="'.$this->singleCaption.'" showNumberDisplay="'.$hideNumberDisplay.'" 
kjtag="'.$imageToolbar.''.($this->data['tx_kjimagelightbox2_presentationmode'] 
? '' : $cap[$this->singleCaption]).'"><img 
src="'.htmlspecialchars($GLOBALS['TSFE']->absRefPrefix.t3lib_div::rawUrlEncodeFP($info[3])).'"
 
width="'.$info[0].'" height="'.$info[1].'"'.$this->getBorderAttr(' 
border="'.intval($conf['border']).'"').($conf['params']?' 
'.$conf['params']:'').($altParam).' /></a>';
}
$GLOBALS['TSFE']->previousImageUID = $this->data['uid'];

Ich hoffe, das hat jetzt mit dem Zeilenumbruch beim pasten geklappt ;) 
Alles, was ich wirklich tue ist eine neue globale Variable 
$GLOBALS['TSFE']->previousImageUID zu definieren. Wenn sie schon 
existiert (was ab dem zweiten Bild der fall ist), setze ich den Style 
auf "display: none;".

Hoffe, Du kriegst das eingebaut. Ich glaube, ich habe das Feature auch 
beim Progger angefragt, bin mir aber nicht sicher.

Gruß,
Alexander


Jonathan Uhlmann schrieb:
> Hallo Zusammen
> 
> Ich verwende auf einer Seite den Lightbox-Effekt. Bei einem 
> Inhaltselement "Text mit Bild" oder "Bild" kann man ja mehrere Bilder 
> einfügen. Nun würde ich aber gerne nur das erste Bild einblenden und die 
> Anderen per CSS ausblenden. (Das ergibt dann wie eine Vorschau für eine 
> Lightbox-Diashow)
> Mein Problem ist, das TYPO3 standartmässig keine Klasse erstellt, welche 
> die Bilder nummeriert. D.h. jedes Bild hat immer die gleichen Klassen 
> (es werden nur Reihen unterschieden)
> 
> Ich habe mir jetzt schon fast ewig die Zähne daran aus gebissen (den 
> Zahnarzt freut's ;-) )
> Kann mir jemand ein Tipp geben wie ich die Contentelemente per TS 
> anpassen kann, damit sie nummeriert werden?
> 
> Danke für jede Hilfe!
> 
> Gruss Jon
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an