Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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