Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-07-03 21:00:12

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Simple Gallery with Categories

Hi,

Is there a plugin/technique that lets you display multiple image categories (with a pic for each category), in which you click the category image and then view the full gallery?

I stumbled on prad_image_index but have no idea how to implement it!

Help would be appreciated

Offline

#2 2008-07-03 21:04:48

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Simple Gallery with Categories

Hi Ross,

not sure if it does what you want (because I’ve never used it), but maybe helpful: upm_category_image


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2008-07-03 21:21:02

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: Simple Gallery with Categories

maniqui wrote:

not sure if it does what you want (because I’ve never used it), but maybe helpful: upm_category_image

Mary’s plugin applies to article categories, not image categories unfortunately.

Thanks for the suggestion though :)

Offline

#4 2008-07-03 21:52:21

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Simple Gallery with Categories

Look at smd_gallery. It can probably do what you need cause I think it can do everything.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#5 2008-07-03 22:27:13

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Simple Gallery with Categories

I think bos_image_index can do that. Nothing wrong with smd_gallery but it’s probably much more than you need.

Offline

#6 2008-07-03 22:48:42

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

Re: Simple Gallery with Categories

Hello,

is this what you’re looking for ?

A portfolio section with many articles (portfolios), and in each article, only the “call” to an image category with <txp:image_index /> (or prad_image_index). A thumbnail is placed in the excerpt of each article and displayed in the articles list of the portfolio section.


françois

Offline

#7 2008-07-03 22:56:37

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: Simple Gallery with Categories

fpradignac wrote:

A portfolio section with many articles (portfolios), and in each article, only the “call” to an image category with <txp:image_index /> (or prad_image_index). A thumbnail is placed in the excerpt of each article and displayed in the articles list of the portfolio section.

Hi fpradignac,

That’s exactly what I’m after! I cannot – for the life of me – get it working using prad_image_index.

I’m not familiar with image_index (which is obviously the root of the problem). Is it something to do with lists? Do I need accompanying CSS styles? Some instructions for exact process to implement it would be exceedingly helpful!

Thanks very much!

Offline

#8 2008-07-04 05:38:30

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

Re: Simple Gallery with Categories

rossharvey,
I’ll take time to give you a complete “how to get it work” like the last example this evening.
But for now, just try to put <txp:prad_image_index c="portfolio1" textalt="1" /> in your article, after creating an image category named “portfolio1”, and assign this category to your images. It should display all your images, after that you should add a brunch of CSS ;-) : look at the one I used in Arnaud Galy web site.


françois

Offline

#9 2008-07-04 17:35:58

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

Re: Simple Gallery with Categories


You will need an image category per portfolio : portfolio1, portfolio2, etc. as you like, and a section portfolio. Create on article for each porfolio.

Articles in the section portfolio:

body = <txp:prad_image_index c="portfolio1" textalt="1" />
excerpt = <txp:thumbnail id="676" />
(the thumb that will be displayed in the list of articles and on which you can click to access the full portfolio)

Page :

<txp:if_article_list>
<txp:article_custom form=“list_portfolio” section=“portfolio” />
</txp:if_article_list>
<txp:if_individual_article>
<txp:article form=“unique_portfolio” />
</txp:if_individual_article>

Form list_portfolio :

<div class=“resume_portfolio”>
<txp:permlink><txp:title /><txp:excerpt /><br /></txp:permlink>
<p class=“date”>Click to see the portfolio</p>
</div>

Form unique_portfolio :

<h3 id=“portfolio”><a><txp:title /></a></h3>
<txp:body />

For the CSS : look at the example site

Hope that it will help you enough ;-)

Last edited by fpradignac (2008-07-04 17:42:01)


françois

Offline

#10 2008-07-07 18:08:32

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: Simple Gallery with Categories

Thank you very much fpradignac – that is very clear. Will get that tested and online this weekend.

Much appreciated!

Offline

#11 2008-07-07 18:10:45

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

Re: Simple Gallery with Categories

You’re welcome ;-)


françois

Offline

Board footer

Powered by FluxBB