Ich habe den Countertext wie oben besprochen angepasst. Im FE steht aber immer noch "of".
Hier ist meine moo_mediabox.html5, vielleicht sieht ja jemand den Fehler.
Ich verwende Contao 2.11.1.
Code:
<?php
// Add mediabox style sheet
$GLOBALS['TL_CSS'][] = 'plugins/mediabox/'. MEDIABOX .'/css/mediaboxAdvWhite21.css||static';
?>
<script src="<?php echo TL_PLUGINS_URL; ?>plugins/mediabox/<?php echo MEDIABOX; ?>/js/mediabox.js"></script>
<script>
Mediabox.scanPage = function() {
var links = $$('a').filter(function(el) {
return el.getAttribute('data-lightbox') != null;
});
$$(links).mediabox({
counterText: '({x} von {y})'
}, null, function(el) {
return [el.href, el.title, el.getAttribute('data-lightbox')];
}, function(el) {
var data = this.getAttribute('data-lightbox').split(' ');
return (this == el) || el.getAttribute('data-lightbox').match(data[0]);
});
};
window.addEvent('domready', Mediabox.scanPage);
</script>
Gruß Matthias
Lesezeichen