Hi Dirk,
perfekt... das hat schon mal gefunzt.
Der Code sieht bei mir nun so aus.
Code:
// subobject 'pagination' options
if ($this->pagination) {
echo ($oComma == true ? ', ' : '') . 'pagination: { ';
echo 'container: "#caroufredsel_pagi_' . $this->id . '"';
$iComma = true;
if ($this->paginationKeys) {
echo ($iComma == true ? ', ' : '') . $this->paginationKeys;
$iComma = true;
}
echo ($iComma == true ? ', ' : '') . 'anchorBuilder: function(nr) {
var title = $(this).find( "h3" ).text();
return "<span>" + title + "</span>";
}';
// echo ($iComma == true ? ', ' : '') . 'conditions: function(direction) { }';
// echo ($iComma == true ? ', ' : '') . 'onBefore: function(data) { }';
// echo ($iComma == true ? ', ' : '') . 'onAfter: function(data) { }';
// echo ($iComma == true ? ', ' : '') . 'onEnd: function(direction) { }';
echo ' }'; // end of subobject 'pagination' options
$iComma = false; // reset inside subobject comma flag
$oComma = true;
Nun werden die H3 Überschriften, welche im Slider angelegt sind in der Pagination als Beschriftung angezeigt.
Hast Du auch eine Idee, wie ich jedem Navigationspunkt eine CSS Klasse geben könnte?
Liebe Grüße,
Dirksche ;-)
Lesezeichen