We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16757
    • 10 Posts
    Thanks and little more fixes. I have galleries with tags and albums. My solution:
    	if (!$scriptProperties['loop']) {
    		$scriptProperties['linkAttributes'] = $this->modx->getOption('linkAttributes',$scriptProperties,'').' rel="lightbox"';
    	}
    	else {	$scriptProperties['linkAttributes'] = $this->modx->getOption('linkAttributes',$scriptProperties,'').' rel="lightbox_album[[+album]]"';
    	}
      • 44567
      • 23 Posts
      wow... one and a half years later and still "lightbox" is hardcoded into the plugin smiley At least make it a variable or an option to set the album-name smiley

      Anyways, media management in general kind of sucks in MODx, so maybe things will generally improve once it catches up with the other CMS' in that area. Really crazy. MODx is waaaaaaay ahead of any other CMS on the market, it is totally underrated, but stuff like media sources and tools for that are just horrible.

      I also added brackets and [randomtext] to the source file at first. There is no 'clean' way to solve this as long as those fragments are hardcoded to the plugin.

      Andreas
        • 23457
        • 5 Posts
        Thanks, it works.
        Merci, ça marche. En français : c'est un bug de slimbox qui n'affiche pas les boutons prev et next pour passer d'une image à l'autre.
        Attention à bien garder la modif lors des mises à jour.