» menu ::.

Access Gallery easily from dotclear

Here is a patch to access images of Gallery instance from Dotclear. Patch is against Dotclear 1.2.4, tested with a Gallery 2.1 (blackjack); shall work with a gallery2.0, but not with gallery1.X.

To use it, apply it on your Dotclear instance (doing a backup before may be a smart thing to do). Adjust settings in the dotclear.ini; see 'dc_gallery*' parameters in dotclear.ini.in. Mandatory settings are 'dc_gallery' (to activate functionality), 'dc_gallery_embed' and 'dc_gallery_uri' to make sure dotclear know where to find your gallery instance.

Then, use something like ##path/img.jpg## in your posts to refer to a gallery image. 'path' is the path inside the gallery (as example, if you have an image 'dsc0001.jpg' in your 'honeymoon' folder of your gallery, you would have to type : ##honeymoon/dsc0001.jpg##. This only work in wiki syntax mode.

You can add a position (left [L], right [R], centered [C], like for normal images) or/and a size hint :

  • ##path/img.jpg|C## will display the image centered with default size
  • ##path/img.jpg|L|342## will display the image on the left, with a size of 342
  • ##path/img.jpg||200## will display the image with a size of 200