|
#1
|
|||
|
|||
|
Sorting order for archive page
How do I go about changing the sorting order on the archive page of my photo blog - link here - right now it displays the images in chronological order (with the option to sort according to categories, etc) - but I would really like to sort them in reverse chronological order so I get the newest first.
I suspect this needs some sort of change in the php code (of which I know next to nothing) since I haven't been able to locate any such option in the admin interface. Any help would be appreciated
|
|
#2
|
||||
|
||||
|
which version do you use?
Usually the photos in the archive are shown in the same order as in the blog page - newest entry first |
|
#3
|
||||
|
||||
|
I actually kind of wish they were in reverse order on the archive/browse pages - so then page 1 would always be page 1 and as you added new photos you added new pages but the previous pages wouldn't change. I had hacked my index file at one time but I stopped doing that a couple versions ago so I wouldn't have upgrade problems.
|
|
#4
|
||||
|
||||
|
kevin, you could write an addon to do this :P
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
|
|
#5
|
|||
|
|||
|
Sorry about the lack of response - have been out of town
Anyways, I am using version 1.7 - having just dug around a bit I've discovered that it's probably something in the theme I am using that's causing this, as the archive IS indeed shown in reverse chronological order when using the the simple theme. It would seem that the tag <THUMBNAILS_WHOLE_PAGED> is the cause of this - I do have the addon installed but it would appear this is showing the thumbnails in the actual chronological order - any way to go around this? |
|
#6
|
|||
|
|||
|
I'd guess so too. It looks like <THUMBNAILS_WHOLE_PAGED> sorts the thumbnails in "id" order, not in "datetime".
|
|
#7
|
|||
|
|||
|
It's the same for me. It happens since i use Pixelpost 1.7...
If someone know how to change it, it would be very appreciated ! (i don't know anything in PHP )
__________________
dOLicHoCePhaLe.net |
|
#8
|
|||
|
|||
|
No one solved this issue?
|
|
#9
|
|||
|
|||
|
Found!
In line 344 of paged_archived.php change PHP Code:
PHP Code:
|
|
#10
|
|||
|
|||
|
So great !
I didn't have any time to look after it, and i'm pretty bad in PHP... so, many thanks !
__________________
dOLicHoCePhaLe.net |
| Post Reply |
| Thread Tools | |
|
|