google-code-export / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Ordering photos in the galleries #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Do you plan to add way, how to define ordering of the photos in the galleries, 
please?

Currently, photos are ordered by "-date_added" field. It is possible to change 
"date_added" value 
to arrange photos by my needs. 

But if I have particular photo in several galleries, and this photo will be 
ordered differently (for 
example in gallery 1 I want to have it on the first place, in gallery 2 
somewhere in the middle of 
the collection, etc), it is impossible to make it by simple change of the 
"date_added" value.

It could be done with intermediate table 
(http://docs.djangoproject.com/en/dev/topics/db/models/#intermediary-manytomany)
 I 
think... What do you mean?

Regards
Michal

Original issue reported on code.google.com by maly.bzy...@gmail.com on 3 Oct 2008 at 6:29

GoogleCodeExporter commented 9 years ago
Explicit numerical ordering? Probably not anytime soon if at all. The default 
Photo/Gallery implementation is intentionally simple. An intermediary model 
adds a 
decent amount of complexity and even if I did make the relationship with an 
intermediary table there would eventually be additional fields you or someone 
else 
would want to define in the relationship that I wouldn't include.

This is why Photologue 2 was designed to be easily extended by your own custom 
applications. I abstracted out the core functionality of the ImageModel class 
because 
I could never write a photo gallery application flexible enough that would fit 
everyone's needs perfectly and in trying I would inevitably make it too complex 
for 
less experienced people to use for simple problems. I try pretty hard to be 
available 
to help developers with developing their own apps based on Photologue and I 
think 
you'd be much happier with something that fits your requirements exactly than 
hacking 
something that just comes close.

Please feel free to join the discussion group and post what you're looking to 
accomplish and I'm sure you'll get the support you need.

http://groups.google.com/group/django-photologue

Original comment by justin.d...@gmail.com on 3 Oct 2008 at 12:50

GoogleCodeExporter commented 9 years ago
Thank you for your answer, Justin.

Original comment by maly.bzy...@gmail.com on 3 Oct 2008 at 3:44