Ceci est une ancienne révision du document !
Slideshow - Mmodifier les liens pour la langue FR
En français, le code du Slideshow, prends en compte la langue et ajoute un fr dans l'url :
<div class="content_image"> <a href="http://www.mines-stetienne.fr/fr/sites/default/files/28_CT.jpg" rel="lightshow[photogallery-200][]" >Diaporama</a>
or les images sont dans le dossier http://www.mines-stetienne.fr/sites/default/files/.
Correction
Éditer pour tous les thèmes le fichier \sites\default\themes\[THEME]\templates\node-standard_page.tpl.php et remplacer la ligne 38 :
<a href="<?php print url($node->field_standard_images[0]["filepath"], array('absolute' => true)); ?>" rel="lightshow[photogallery-<?php print $node->nid; ?>][<?php print $node->field_standard_images[0]["data"]["alt"] ?>]" ><?php print t('Slideshow'); ?></a>
par :
<a href="<?php print url($node->field_standard_images[0]["filepath"], array('absolute' => true, 'language' => '')); ?>" rel="lightshow[photogallery-<?php print $node->nid; ?>][<?php print $node->field_standard_images[0]["data"]["alt"] ?>]" ><?php print t('Slideshow'); ?></a>
et la ligne 44 :
<a class="display_none" href="<?php print url($image["filepath"], array('absolute' => true)); ?>" rel="lightshow[photogallery-<?php print $node->nid; ?>][<?php print $image["data"]["alt"] ?>]"></a>
par
<a class="display_none" href="<?php print url($image["filepath"], array('absolute' => true, 'language' => '')); ?>" rel="lightshow[photogallery-<?php print $node->nid; ?>][<?php print $image["data"]["alt"] ?>]"></a>
Faire les mêmes corrections pour les fichiers :
- node-jobs.tpl.php ;
- node-jobs_liste.tpl.php.
— Gregoire BERTHEZENE 08/04/2013 12:10