Announcement

  •  » Requests
  •  » Add a field in table images and order thumbnails by this field

#1 2008-11-04 12:14:55

manute
Member
2008-06-12
13

Add a field in table images and order thumbnails by this field

Hello, again

I would like to show the thumbnails ordered by a new field I have added to table "images". Is it possible?. Any help would be strongly appreciated.
Thanks!

Offline

 

#2 2008-11-04 13:21:14

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: Add a field in table images and order thumbnails by this field

It is not recommended (for upgrade reasons) to add a field to the _images table.
Next version (Piwigo 2.0.0) will provide a new free ordering system.

Anyway, with LocalFiles Editor plugin you could add to your config_local this parameter:

$conf['order_by'] = ' ORDER BY new_column DESC';

It should work.
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#3 2008-11-04 16:40:38

manute
Member
2008-06-12
13

Re: Add a field in table images and order thumbnails by this field

Thank you very much, VDigital !

It works fine!
Anyway, I will keep this change in mind when upgrading to PiWiGo 2.0.

Thanks again,
Best regards.

Offline

 
  •  » Requests
  •  » Add a field in table images and order thumbnails by this field

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact