Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-08-18 08:47:38

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

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

#2 2015-08-18 09:02:30

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

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

#3 2015-08-19 05:58:42

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

Re: Image sort ordering

Thanks etc… nah not very convenient… but could be my only option :) Thanks

Offline

#4 2015-08-19 11:45:35

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

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,303

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

#6 2015-08-19 12:56:40

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

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,303

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

#8 2015-08-19 16:46:42

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: Image sort ordering

uli wrote #294228:

an updated and improved version can be downloaded from the forum.

Good to know. Thanks!

Offline

#9 2015-08-20 00:03:32

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

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

#10 2015-08-20 13:12:32

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

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,303

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

#12 2015-08-21 01:29:07

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

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

Board footer

Powered by FluxBB