WPG2 Album Tree Widget

blue442

Joined: 2008-05-07
Posts: 8
Posted: Wed, 2008-05-07 23:23

I am having a strange issue i can not seem to resolve...

I am putting together a site for my wife.
http://www.daveandgracie.com/graciesblog/

now, i also have gallery here: http://www.daveandgracie.com/gallery2/

both work wonderful.

but, if you look at the album tree widget on my sidebar, its sorting my albums from oldest to newest. I can not seem to get it to sort in the same order as my gallery is sorted in. I have tried flipping the albums around, but it makes no difference.

I have searched for some other solutions but was unable to find anything that seemed to match this problem. All of the other sites i have found appear to be correctly ordered.

Lol, I'm going nuts.
Can anyone shine a light on what's going on here?

Thanks
David.

Login or register to post comments
blue442

Joined: 2008-05-07
Posts: 8
Posted: Thu, 2008-05-08 00:09

Well...
i may have stumpled upon somethign

i am using a 'creation date' sorting method.

this seems to be ignored.

when i switch back to 'manual order' and put them in the order i want them in, it seems to be happy...

is this the correct way to do it?

thanks for any input.

Login or register to post comments
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1022
Posted: Thu, 2008-05-08 11:53

Hiya blue442,

This issue is vaguely familiar.. I have opened a Bug Ticket Against it and will test it out..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

Login or register to post comments
capt_kirk

Joined: 2006-01-24
Posts: 479
Posted: Thu, 2008-05-08 13:30

The problem is that the current album tree widget uses Gallery's default album tree sort method. When I wrote that code, that was the only way to do it, because we didn't have a good way to reach into Gallery and get all of the information needed to do our own sort.

In the development tree of G2Image, I have the album tree sorting by several different user-selectable methods, because now I know enough to reach into Gallery and pull the required info and do the sort inside of G2Image instead of relying on the default Gallery API.

This is one of those things that falls into the category of "it will be fixed in 3.1, once we port the imageblock replacement code from G2Image into the core of WPG2." That doesn't help you for now, but at least it's on the relatively near-term horizon. (Realize that near-term means in a few months...)

As you noted, the default Gallery sort order is the manual sort order. If you go to an album, temporarily turn off sorting, manually sort it the way you want, and then turn back on auto sorting, the manual sort is stuck in the background and will be used for the album tree. It's a painful workaround for a large gallery with lots of albums and sub-albums, but that's the only option for now.

Hope this helps explain what's happening.

Thanks,
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

Login or register to post comments
blue442

Joined: 2008-05-07
Posts: 8
Posted: Thu, 2008-05-08 23:16

no worries at all. i apprecaite the info. i just sorted them manually and was done with it =D

now if only i can work out the issue with my tree moving about (posted it in the CSS and Layout section).

Login or register to post comments