Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Manual Image sorting
Is there a plugin that allows for manual image sorting?
(ie. a drag and drop interface or simply something that allows you to swap two image ids…)
Offline
Re: Manual Image sorting
Do you want to sort in the admin interface only, or in the output?
Offline
Re: Manual Image sorting
In the output. But I need to be able to do it via the admin interface. So really both.
Offline
Re: Manual Image sorting
Hi dl33,
Fairly hacky way to do this I guess, but I had to create a list of thumbnails in a specified order for an artist’s site. I use several plugins to achieve it – wet_for_each_image, upm_image, and asy_wondertag. The wet_for_each_image does my sorting, as you can see in the code below, and I’ve named each image so they appear in the desired order (alphanumerically). asy_wondertag I’m using to output only a specific category of images, and upm_image outputs the actual image form. To help on the admin side I used the truly awesome JQuery table sorter plugin – requires some editing of /lib/txplib_head.php
and /include/txp_image.php
to get tablesorter working.
<ul id="thumbnails">
<txp:asy_wondertag><txp:wet_for_each_image category="<txp:article_url_title />" sort="name asc" limit="999">
<txp:upm_image image_id="{id}" form="img_thumb" />
</txp:wet_for_each_image></txp:asy_wondertag>
</ul>
Offline
Re: Manual Image sorting
Thanks nabrown78. Does this allow me to sort the images in any way (manually) or am I limited to sorting by some property. I am thinking of something like stm_article_order for images.
Offline
Re: Manual Image sorting
Wow – I didn’t know about stm_article_order. No, the method I used requires you to sort by a property, in my case the names, which I manipulated so the images fall into the correct order. Maybe you can get the stm_ creators to make a plugin for images – that would be wonderful!
Offline
Re: Manual Image sorting
Maybe you can get the stm_ creators to make a plugin for images – that would be wonderful!
Yes, that would be great … :)
Offline
Re: Manual Image sorting
+2 on stm_image_order :)
Offline
Re: Manual Image sorting
Yep. I’m on board for this too. There are some drag/drop plugins for jQuery – not sure how to hook into the database once you set your order…but that’s what all these amazing plugin developers are for. :)
Offline
Re: Manual Image sorting
Just send the developer of stm_article_order and email: Turns out that he no longer develops textpattern plugins… Anyone up for the Job?
(I’ll put something up in a Plugin Request section if there is such a thing.)
Offline
Re: Manual Image sorting
I wish I had the knowledge/confidence to take it on…I’d be willing to contribute testing/ransom funds though.
Offline
Re: Manual Image sorting
As I said, I posted a Plugin Request. If you guys hop over there and say that you are interested, I am sure that one of the other developers will give it a go.
Offline
Pages: 1