Recent Changes - Search:

Images with captions


Add image captions by placing the text after the attached image, and include this markup in config.php:

$HTMLFooterFmt['galleria-js'] = '
<script type="text/javascript"><!--
$(document).ready(function(){
  $(".Galleria").galleria({
    dataConfig: function(img){
      return { description: $(img).nextAll(\'em\').html() };
    }
  });
});
//--></script>';
(:div id="demo" class="Galleria":)
* Attach:P5123230.jpg"This is image 1 -- very nice"|''caption''
* Attach:P5123234.jpg"Image two seems a bit out of focus -- no caption"
* Attach:P5123241.jpg|''No Description''
* Attach:P5123242.jpg"x"|''A caption, image4''
* Attach:P5123247.jpg"x"|''A caption, image5''
* Attach:PC293632.jpg"x"|''A caption, image6''
(:divend:)
  • This is image 1 -- very nice|caption
  • Image two seems a bit out of focus -- no caption
  • |No Description
  • x|A caption, image4
  • x|A caption, image5
  • x|A caption, image6
This is image 1 -- very nice
Caption
This is image 2
Caption
This is image 1 -- very nice
Caption
This is image 2
Caption

(:pmgallery:)

Edit - History - Print - Recent Changes - Search
Page last modified on April 29, 2012, at 03:22 PM