Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-23 09:10:13

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

prad_image_index gallery plugin

François Pradignac has written a neat gallery plugin called prad_image_index.

prad_image_index is a hacked version of the Textpattern function image_index() merged with rss_thumbpop of Rob Sable to have popup windows of images category.

How to use:
<code><txp:prad_image_index c=“payasges” />
<txp:prad_image_index c=“payasges” padwidth=“125” padheight=“80” textalt=“1” textcaption=“1” />
<txp:prad_image_index c=“payasges” bgcolor=“FFCC66” color=“400080” textalt=“1” /></code>

Attributes:

  • the same as image_index
  • style
  • align – left, center, right
  • textalt- alternativ text <p class="txpThumbAlt">
  • textcaption – <p class="txpThumbCap">
  • padwidth – padding right and left ( default padwidth=”50”)
  • padheight – padding top and bottom (default padheight=”50”)
  • bgcolor – background-color (default bgcolor=”EEECE4”)
  • color – text color as hexa (no # requ.) for the texte of the image (default color=”990000”)

Infos are currently only available in french. Please help to translate the help file for the plugin.

Offline

#2 2006-04-24 10:40:16

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: prad_image_index gallery plugin

In addition to Alex post :

v.0.4.0

Now you have the ability to sort images by their name or id : sortby=“id”.
The id is set when you upload an image, so you can sort with : last uploaded, first uploaded.
With asc and desc you can switch the sort’s direction : sortdir=“desc”.

v.0.3.1

Correction of a mistake that put spaces in the URL instead of %20.

v.0.3.0

If the popup isn’t closed, and if you focus on the “master” window, the popup came behind. Now, a click on a new image bring hover the popup instead of keeping it behind.

v.0.2.0

English version for the non french “community”.

  • textclose – the title displayed when the image is flown over in the popup window (default textclose=“Click to close”)
  • correction of some bugs that no one should see …

v.0.1.0

Original version for my own use with some bugs for the fun ;-).

A little explanation to use it in an article :

  • create an image category : ex “landscape”
  • create a new article with the following tag in the body :
    <code><txp:prad_image_index c=“landscape” sortdir=“desc” textalt=“1” /></code>.
  • When you’ll call your new article, it will display all the thumbnails (with popup) of your image category with his alternative text.

Last edited by fpradignac (2006-10-07 13:11:50)


françois

Offline

#3 2006-04-24 11:14:06

saccade
Plugin Author
From: Neubeuern, Germany
Registered: 2004-11-05
Posts: 521

Re: prad_image_index gallery plugin

@fpradignac

A very good plugin. Thank you.

There’s one article by image category, and in this article, only the call to the image category.

Maybe I’ve missed something or lack of txp-knowledge (or lack of french): How did you code the first article page with the category images/links? It is a list, but: Is it generated by the/a plugin or is it hardcoded?

EDIT: Do I guess right? The first page is simply the articles-list floated and the images are provided in the excerpt?

Michael

Last edited by saccade (2006-04-24 11:43:05)

Offline

#4 2006-04-24 12:23:21

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: prad_image_index gallery plugin

Thanks saccade and you’re right, each article have an excerpt with a simple content :
<code><txp:thumbnail id=“45” /></code>


françois

Offline

#5 2006-05-01 18:56:38

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: prad_image_index gallery plugin

prad_image_index is now in english in the v.0.2.0 with a few improvements.

Last edited by fpradignac (2006-05-01 18:57:14)


françois

Offline

#6 2006-05-01 20:51:50

Dufresne
Member
Registered: 2005-09-19
Posts: 22

Re: prad_image_index gallery plugin

Francois, thanks for the plugin – looks perfect for my needs.

I can’t seem to get v2 though, the link on your site points to v1.

Dufresne

Offline

#7 2006-05-02 05:28:41

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: prad_image_index gallery plugin

alex & Dufresne
sorry ! It’s all right now … v.0.2.0 is online.

Last edited by fpradignac (2006-05-02 05:36:47)


françois

Offline

#8 2006-05-02 07:26:19

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: prad_image_index gallery plugin

As i intend to write a short tutorial on the plugin i have some more questions:
As saccade mentions above, each article has an excerpt with <txp:thumbnail id="45" /> in it.
Now my question: the article itself contains f. e. <txp:prad_image_index c="landscapes" /> ?? correct?

Offline

#9 2006-05-02 09:45:18

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: prad_image_index gallery plugin

alexandra wrote:

As i intend to write a short tutorial on the plugin i have some more questions:
As saccade mentions above, each article has an excerpt with <txp:thumbnail id="45" /> in it.
Now my question: the article itself contains f. e. <txp:prad_image_index c="landscapes" /> ?? correct?

Exactly Alex, like I mentionned it at the end of the #2 post of this thread ;-)


françois

Offline

#10 2006-05-02 15:47:15

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: prad_image_index gallery plugin

shame on me :) i did overread this bit…

Offline

#11 2006-05-16 20:22:24

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: prad_image_index gallery plugin

prad_image_index is now in v.0.3.0 with a javascript improvement.

Please take a look at the second post.

Last edited by fpradignac (2006-05-16 20:23:10)


françois

Offline

#12 2006-07-17 18:26:19

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: prad_image_index gallery plugin

prad_image_index is now in v.0.3.1 with a correction of the URL that had spaces instead of %20.

Please take a look at the second post.


françois

Offline

Board footer

Powered by FluxBB