Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 1 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

jmr_gallery

This plugin creates a simple image gallery with optional association to specific article.

Usage
There are two ways to use this:
1) <txp:jmr_gallery category="some_category"/>
This will simply pull in all the images files in “some_category”.

2) <txp:jmr_gallery />
If you do not supply a category, the plugin takes the current article number and attaches “article-” in front of it and uses that as the category. Thus, if you are looking at article 16 the plugin grabs the images from the image category “article-16”. Please name your article categories accordingly. This how I use the plugin. It enables me to slap the plugin tag into my generic article form and forget about it. I simply made a whole bunch of image categories named “article-1”, “article-2”, “article-3”, etc. and make sure I upload the proper pictures to the right category and bingo presto, an article-associated image gallery.

Example
http://www.jmrhoades.com

Acknowledgments
This is really an all-in-one distillation of Max Ziebell’s Textpattern Gallery sans the nasty javascript and cnolle’s cno_image_nav

Disclaimer
Hey, I don’t really do php, so the code ain’t sexy, but it works for me. Use at your own risk.

Article Request Count:

Archived [?]: orphaned: download link broken

Initially released:
2004-09-27
Posted here:
23 Mar 2005

You know you want to visit the Archives.
Published with Textpattern