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

Gallery function Settings #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The Gallery functions latest() and sample have options to display a finite
number of photos, but it is only accessible via view functions

It would be nice to be able to have a setting that would limit this so a
call in a template would yield only this number of images

GALLERY_LATEST_LIMIT = 10

{% for image in mygallery.latest %}

<div> {{ image }} </div> x 5

This would result in less code in view function as well as fewer items
being loaded into memory for each gallery

Then you could use the standard objects.all() to get all of the images or
something to that effect

Original issue reported on code.google.com by e3satter...@gmail.com on 10 Feb 2009 at 5:27

GoogleCodeExporter commented 9 years ago
Added PHOTOLOGUE_GALLERY_LATEST_LIMIT in r392.

Original comment by justin.d...@gmail.com on 23 Jul 2009 at 4:17

GoogleCodeExporter commented 9 years ago
Make that r393.

Original comment by justin.d...@gmail.com on 23 Jul 2009 at 5:32