Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Image sort ordering
Hey – I’ve got a quick question – on a friends website he uploaded all the images in the wrong order – so now we have no way to display them as they should be (telling a story)
Is there a way / plugin to reorder images on the image tab?
I have thought of renaming them and sorting by “name asc” or using alt tag “alt asc” – but there are over 200 :(
Any ideas would be great :)
Offline
Re: Image sort ordering
Not very convenient, but <txp:images sort="FIELD(id, 6, 13, 2, ...)" />
should work (untested though).
Edit: or simply <txp:images id="6, 13, 2, ..." />
.
Last edited by etc (2015-08-18 09:07:48)
Offline
Re: Image sort ordering
Thanks etc… nah not very convenient… but could be my only option :) Thanks
Offline
Re: Image sort ordering
A slow, tedious, but long term option might be to edit the database directly – changing the entry ids.
It would take a lot of time, but once done, it would be exactly in the order you wanted things going forward.
Offline
#5 2015-08-19 11:51:47
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: Image sort ordering
tye, there’s also cno_image_order, a branch of stm_article_order. Mail me should you not find a copy of the plugin.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Image sort ordering
uli wrote #294223:
cno_image_order
Good catch Uli. I forgot about that plugin.
cno_image_order v0.2a is available as a download from Textpattern.org
stm_article_order.
Tangent: stm_article_order info and download links no longer work at Textpattern.org
Offline
#7 2015-08-19 13:08:48
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: Image sort ordering
maverick wrote #294227:
Tangent: stm_article_order info and download links no longer work at Textpattern.org
Yes, Mike, I know, monsta has rebuilt his website. Sadly, commenting is closed at .org. But an updated and improved version can be downloaded from the forum.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Offline
Re: Image sort ordering
Thanks uli, maverick – I got a copy of cno_image_order_v02a.txt – but when I installed on txp 4.5.7 – I don’t get any images to sort – just an Image Sequence tab with no images…. is there another step to the install?
Offline
Re: Image sort ordering
Tye – I do not currently have it installed. Uli found someone who has it working in 4.5.7 and has asked if he can help you.
Offline
#11 2015-08-20 13:58:15
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: Image sort ordering
tye wrote #294238:
I don’t get any images to sort – just an Image Sequence tab with no images
I did a quick installation on my sandbox environment with 80+ plugins installed (= muuch potential for plugin conflicts), and it worked right from the start, though, at first, I was a little perplexed by the same “no images appearing” syndrome. But I remembered to click on the categories like it needs clicking sections in stm_article_order. Have you tried that?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Image sort ordering
Hey Uli – I got it working, I didn’t have any images in categories… once I put them in, all good :)
Thanks for the help
Offline
Pages: 1