vodkabears / galereya

DEPRECATED
http://vodkabears.github.com/galereya
MIT License
114 stars 55 forks source link

Support for multiple categories per image #18

Open mrbig opened 9 years ago

mrbig commented 9 years ago

Hello,

this change makes it possible, that images have multiple categories. It works with the json source, and each category will be added to the main category list. Then you can filter images by categories as before.

To achieve this with the less possible changes I've changed everywhere the way the category is handled from plain string to array.

It could be nice to have some kind of format for the data-attribute version too, like separating the keywords with commas, but I didn't implement this righ now.

I'd be happy to read your opinion about this.