hovel / imagestore

Django gallery solution.
BSD 3-Clause "New" or "Revised" License
164 stars 71 forks source link

How to use with PrettyPhoto? #16

Open sandino opened 11 years ago

sandino commented 11 years ago

As said in #2 including PrettyPhoto is not enough, it also necessary to change link urls. I hacked image_list.html and lightbox script working. But I think better way is to change image-href.html template. Could you please explain what rows need to be changed:

{% if album %}
    {% url imagestore:image-album album_id=album.id pk=image.id %}
{% else %}
    {% if tag %}
        {% url imagestore:image-tag tag=tag pk=image.id %}
    {% else %}
        {{ image.get_absolute_url }}
    {% endif %}
{% endif %}

Especially, I don't understand what is the tag variable for?