collection sorting should be by the number, which should be a string

Bug #703550 reported by rejon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
yumumu
Fix Released
Critical
Brad Phillips

Bug Description

need to make sure there is a string field for each image that is separate from title and description...she only wants this number represented lke 01, 02, 03, so probably just a string, to be used for sorting as awell...

Revision history for this message
Brad Phillips (brad-bradphillips) wrote :

Could you clarify this a bit more? So, there should be another text field, when an image is uploaded, where Yilin can manually enter a string of some sort?

Do I need to do anything with that data? Should it be placed somewhere on the site? Will this string determine the order in which the thumbnails display on the Collections page or something?

Revision history for this message
rejon (rejon) wrote :

no, we just talked in chat. the title field for images should be where yilin or others make the number or title they seek, then we should have the horizontal image scroller sort by that title field...we need to experiment how that is done...need sorting to happen like:

00, 01 .. 10 .. 20 .. 100 .. "some title" "some other title"

lets mainly worry that the numbers in this 00, 01 format are sorting from 00 .. 100 .. 1000 first, then text titles second.

Changed in yumumu:
status: Confirmed → Triaged
importance: High → Critical
Revision history for this message
Brad Phillips (brad-bradphillips) wrote :

Ok, I've been working on making this happen, but I'm having trouble with some of the initial steps.

Firstly, in order to order by numbers, I need to be able to change the title of the images in the dashboard..I've been having trouble making this happen..I've added the <edit></edit> tags & everything in between based off of the example on the aiki wiki & it appears to work on /cp/your-images (if you click on the title of any of the thumbnails that are currently associated, an editable textarea pops up). If you refresh the page, however, it's clear the db values aren't being updated at all.

Widget 75 contains the single field db edit form. Bassel, could you check this out for me & let me know what the problem is? I notice that, rather than placing the actual id of the element in the html tags, it's simply the numbers 1-5 (corresponding to the order in which the images are displayed), so I'm certain this is part of the reason why nothings getting correctly transmitted to the db.

Another question for Bassel. Is there a way to call 2 separate widgets, via ajax to a new widget via one link? If so, how is this done? Or can links be nested to achieve this? I'm having trouble figuring that out as well.

Revision history for this message
Brad Phillips (brad-bradphillips) wrote :

Ah, figured out the edit-in-place title issue, so no worries there. I can make more progress on this bug now, but the double ajax widget question still stands.

Revision history for this message
rejon (rejon) wrote : Re: [Bug 703550] Re: collection sorting should be by the number, which should be a string

ok, I think you need to work this out with bassel in realtime...

Jon

On Thu, Jan 20, 2011 at 8:00 AM, Brad Phillips
<email address hidden> wrote:
> Ah, figured out the edit-in-place title issue, so no worries there.  I
> can make more progress on this bug now, but the double ajax widget
> question still stands.
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/703550
>
> Title:
>  collection sorting should be by the number, which should be a string
>

--
Jon Phillips
http://rejon.org/
http://fabricatorz.com/
chat/skype: kidproto | irc: rejon
+1.415.830.3884 (sf/global)
+86.187.1003.9974 (china)
+852.9647,9389 (hongkong)
+65.8330.5807 (singapore)

Revision history for this message
Brad Phillips (brad-bradphillips) wrote :

Cool, so you can now change the title of the thumbnail (via /cp/your-images from the dashboard nav link IMAGES) to change the order that they are displayed within a collection.

You must start each title with the number you want to use (i.e. 01 Light Blue Dress, 844 All Black Outfit) & the thumbnails display from left to right in ascending numerical order (0, 1, 2, 3, 55, 100, etc). Images that don't have a number in front of their title are displayed after those numbers in alphabetical order (A-Z). Changing a titles number or Title will switch it's order in the collection in real time!

Changed in yumumu:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.