Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-11-29 23:12:15

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Multiple Image categories... or some other way

Hey – I have a site where they images for each product – which I have categorised and all is good.

No they want to choose some of these images for a slideshow on the front page and make it as user friendly in the admin as possible.

I am looking at using something like the new image_info tag and the caption field and somehow creating some variable magic (haven’t really thought that through yet).

But I just wondered if there was some other way of achieving this – a simpler way… (rss_unlimited_image_cats – or something like – would make it extremely user friendly)

Any thoughts?

Offline

#2 2010-11-29 23:45:04

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Multiple Image categories... or some other way

Actually – I’m just thinking I may be better using articles with article images for this… that will give them much more control – still interested in ideas/plugins though

Offline

#3 2010-11-29 23:46:46

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

Re: Multiple Image categories... or some other way

tye wrote:

they want to choose some of these images for a slideshow on the front page and make it as user friendly in the admin as possible.

Thinking out loud here, might not work. Could you set up an article called Front Page Slideshow and set it to a date far far into the future so it appears at the top of the Articles list. You could tell the client to edit that article whenever they want to change the slideshow. Essentially, all you need to do is install jmd_img_selector (note if installing on 4.3.0) so they can choose the images they want.

Behind the scenes, the IDs of the images they choose will go in the Article Image field as a comma-separated list, making it easy to use <txp:images> in your front page like this:

<txp:article_custom id="your_future_article_ID" time="any">
<txp:images>
<txp:image />
<div class="caption"><txp:image_info /></div>
</txp:images>
</txp:article_custom>

Or something along those lines. Every time they visit that article and click Insert Image, the ones they have previously chosen will still be highlighted so they can unclick and reclick to make a new slideshow then Save the article.

Does that help or give you any other ideas?

EDIT: you beat me to it with the article idea.

Last edited by Bloke (2010-11-29 23:49:02)


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 2010-11-29 23:48:50

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Multiple Image categories... or some other way

Untested idea:

<txp:images categories='<txp:category_list parent="products" br="," />' />

Then, of course, add a parent category, ‘parent’.

Edit: I’m even slower; article images sounds easier all around.

Last edited by jsoo (2010-11-29 23:49:33)


Code is topiary

Offline

#5 2010-11-29 23:59:34

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Multiple Image categories... or some other way

Thanks Stef and Jeff :)

Probably 99 time out of 100 I come here with a problem… type it out press submit and then bang a solution pops up in my head.

Its like I use the forum as a think pad :)

Glad I was on the right lines this time

Offline

Board footer

Powered by FluxBB