Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-10-31 22:53:20

dreamer
Member
Registered: 2007-06-08
Posts: 242

What's a good plugin for this? (gallery + custom fields)

I need 1 maybe 2 plugins for this. See mockup

The user needs to have a catalogue of products to show on the site. I want to allow the user to upload a 1-3 photo(s) of each product and then input data for each product, as shown on the mockup.

I’d like the photos to have a lightbox effect or something close to it. So I need one for that. And I’m not sure if I need a custom fields plugin or if I should just edit my existing fields allowed in TXP?

Offline

#2 2008-11-01 00:35:54

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,094

Re: What's a good plugin for this? (gallery + custom fields)

Check out smd_gallery – its documentation has plenty of examples including Lightbox.

It can pull images based on a category filled in a standard custom field.

Offline

#3 2008-11-01 01:04:11

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,721
Website GitHub

Re: What's a good plugin for this? (gallery + custom fields)

dreamer wrote:

… and then input data for each product, as shown on the mockup.

Have you checked out yab_shop for the commerce part? It’s awesome for simple shopping scenarios like this. I think you can set up each product as an article and use the custom fields to specify each part (price, variety, deposit, etc) so you’ll probably also want a plugin that automatically opens the “advanced options” link on the left.

As masa says, combined with smd_gallery to handle the lightbox side of things, you could either:

  1. use a custom field (or article image) to specify a list of image IDs and have the user put the image numbers in there. Perhaps look at lam_image_uploader to ease the image upload process and assign images direct from the write tab
  2. use image categories. Assign all pictures for a product to the same image category (perhaps named the same as the product code) and have smd_gallery automatically read all images for that associated article

There are probably other ways of doing it but that’s how I’d approach it. Others may offer advice yet, so see what else people offer before taking the plunge.

Last edited by Bloke (2008-11-01 01:06:57)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#4 2008-11-01 10:11:45

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: What's a good plugin for this? (gallery + custom fields)

I’m precisely doing this for a current project.
I’m using upm_image to have multiple article images, and then the galleria plugin to show those. ( see this tutorial for more details ) I’m also using lam_image_uploader, makes it so much easier
I’m using custom fields for item properties: color, size, price

I’d be happy to answer any other questions you have. It took a bit to figure out how to do it all!


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

Board footer

Powered by FluxBB