Title: NextGEN Gallery Sidebar Widget
Author: maff
Published: <strong>18 Aibreán, 2009</strong>
Last modified: 6 Feabhra, 2012

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/nextgen-gallery-sidebar-widget.svg)

# NextGEN Gallery Sidebar Widget

 By [maff](https://profiles.wordpress.org/maff/)

[Download](https://downloads.wordpress.org/plugin/nextgen-gallery-sidebar-widget.0.4.3.zip)

 * [Details](https://ga.wordpress.org/plugins/nextgen-gallery-sidebar-widget/#description)
 * [Reviews](https://ga.wordpress.org/plugins/nextgen-gallery-sidebar-widget/#reviews)
 *  [Installation](https://ga.wordpress.org/plugins/nextgen-gallery-sidebar-widget/#installation)
 * [Development](https://ga.wordpress.org/plugins/nextgen-gallery-sidebar-widget/#developers)

 [Support](https://wordpress.org/support/plugin/nextgen-gallery-sidebar-widget/)

## Description

The NextGEN widgets only allow showing of single images, I needed a solution to 
show links to galleries, so I wrote this widget. You can specify the following parameters:

 * Maximum Galleries: the number of galleries you want to show
 * Gallery Order: you can select random, date added ascending or date added descending
 * Gallery Thumbnail: which image should be taken as thumbail in the sidebar (preview
   set in NGG, first or random image)
 * AutoThumb parameters: if you got [AutoThumb](https://wordpress.org/extend/plugins/autothumb/)
   installed, the widget will use its functions to resize the image to your needs.
   Use a string like `w=80&h=80&zc=1` here to show 80×80 square thumbnails.
 * Output width/height: if you don’t use AutoThumb, the plugin will set the HTML
   attributes width & height.
 * Default Link Id: the widget assumes that you set up pages for each gallery and
   link the gallery to that page (you can use the NGG Gallery Editor to do this).
   If a gallery has no link set, it will use the default link (id of a page or post).
 * Exclude galleries: exclude galleries by specifying their ID as comma separated
   list

All development is done on [GitHub](https://github.com/maff/wp-nextgen-gallery-sidebar-widget).
If you have ideas, enhancements, etc. feel free to fork the project and send a pull
request.

For any issues please use the [Issue Tracker](https://github.com/maff/wp-nextgen-gallery-sidebar-widget/issues).

Templating:

Beginning with version 0.3, you have full control over the widget’s output as it
is controlled with templates. As the built-in templates would get overwritten on
every plugin update, create a new directory called “ngg-sidebar-widget” in your 
theme’s directory and copy the two template files “tpl.outer.html” and “tpl.inner.
html” over there to edit them. The outer template is just a wrapper template (useful
when you need some additional markup, e.g. when creating a list), the inner template
has access to all the values from the gallery and image object (written in a simple
templating syntax: {=object.member}). For the most use cases you should only need“
gallery.title”, “gallery.link” and “image.url”.

You will have access to the following variables:

 * gallery
    - gid
    - name
    - path
    - title
    - galdesc
    - pageid
    - previewpic
    - author
    - link
 * image
    - errmsg
    - error
    - imageURL
    - thumbURL
    - imagePath
    - thumbPath
    - href
    - thumbPrefix
    - thumbFolder
    - galleryid
    - pid
    - filename
    - description
    - alttext
    - imagedate
    - exclude
    - thumbcode
    - name
    - path
    - title
    - pageid
    - previewpic
    - permalink
    - post_id
    - sortorder
    - meta_data
    - gid
    - galdesc
    - author
    - imageHTML
    - thumbHTML
    - url
    - output_width
    - output_height
    - output_width_tag
    - output_height_tag

## Installation

 1. Upload `ngg-sidebar-widget.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use the widget in the widget editor.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“NextGEN Gallery Sidebar Widget” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ maff ](https://profiles.wordpress.org/maff/)

[Translate “NextGEN Gallery Sidebar Widget” into your language.](https://translate.wordpress.org/projects/wp-plugins/nextgen-gallery-sidebar-widget)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/nextgen-gallery-sidebar-widget/),
check out the [SVN repository](https://plugins.svn.wordpress.org/nextgen-gallery-sidebar-widget/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/nextgen-gallery-sidebar-widget/)
by [RSS](https://plugins.trac.wordpress.org/log/nextgen-gallery-sidebar-widget/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

 * 0.4: Add include_galleries option
 * 0.3.3.1: Fix bug on widget no displaying galleries when no exclusions are set(
   bug #59, #60)
 * 0.3.3: Fix wrong maximum galleries (bug #58)
 * 0.3.2: Image output width fix in template, Cleanup
 * 0.3.1: Gallery limit bugfix
 * 0.3: WordPress 2.8+ widget API, gallery exclusion option, templating feature
 * 0.2.2: Add gallery_thumbnail option to select thumbnail image (preview, first,
   random)

## Meta

 *  Version **0.4.3**
 *  Last updated **14 (m)bliana ago**
 *  Active installations **600+**
 *  WordPress version ** 2.8 or higher **
 *  Tested up to **3.3.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/nextgen-gallery-sidebar-widget/)
 * Tags
 * [gallery](https://ga.wordpress.org/plugins/tags/gallery/)[image](https://ga.wordpress.org/plugins/tags/image/)
   [photo](https://ga.wordpress.org/plugins/tags/photo/)[picture](https://ga.wordpress.org/plugins/tags/picture/)
   [widgets](https://ga.wordpress.org/plugins/tags/widgets/)
 *  [Advanced View](https://ga.wordpress.org/plugins/nextgen-gallery-sidebar-widget/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/nextgen-gallery-sidebar-widget/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/nextgen-gallery-sidebar-widget/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/nextgen-gallery-sidebar-widget/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/nextgen-gallery-sidebar-widget/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/nextgen-gallery-sidebar-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/nextgen-gallery-sidebar-widget/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/nextgen-gallery-sidebar-widget/reviews/)

## Contributors

 *   [ maff ](https://profiles.wordpress.org/maff/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/nextgen-gallery-sidebar-widget/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://ailoo.net/about)