Old‎ > ‎

Simple integration of Gallery2 in Dotclear2

This patch is probably completely deprecated.

The attached patch enable an integration of Gallery2 images on a Dotclear 2 blog.

The patch is really basic and crude; a plugin might be better but that's an adaptation from a patch for dotclear 1 :) Nevertheless it's working well. You can apply it with a simple patch -p1 < dc2-gallery2.patch from the directory of your dotclear2 installation.

It works only for wiki mode and add a new kind of tag:


That will put the corresponding image from the gallery in the blog post. You can easily get the path and image name from the Gallery URL of the image you want to insert, without the base path and the html extension.

The full tag syntax is similar to regular images:



  • position is L or G for a left position, R or D for a right position, or C for centered (default).
  • size determine the size of the image, in pixels.

Both are optionnal.

The patch adds a few parameters available in the gallery section of the about:config of your blog instance:

  • gallery_enable : Activate gallery2 integration.
  • gallery_embed : Where to find the embed.php on the local server from the Gallery2 embedding system. E.g, /home/user/gallery-site/embed.php.
  • gallery_uri : Path relative to your domain of the gallery instance. E.g., /gallery/main.php.
  • gallery_size : Default size of images. E.g, 400.

Unfortunately, this patch doesn't support yet integration of a gallery on another domain name.

Pierre Palatin,
Aug 12, 2011, 1:05 PM