You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- *Sort*: the sort order for this album. If prefixed with a '-' it will be in
reversed order.
...but this only seems to apply to sorting "sub albums" because it's only used in Album.sort_subdirs()
Album.sort_medias() doesn't seem to know/care about either self.meta['sort'] so media files are only ever sorted by the (global) medias_sort_attr setting for the entire gallery.
The text was updated successfully, but these errors were encountered:
... not sure if it should be the same metadata key though ?
Given the current design of sigal -- where an album can either have sub-albums or images, but not both -- I'm not sure why it wouldn't make sense to say "The Sort: metadata in index.md can be used to override either the albums_sort_attr or medias_sort_attr configuration setting, depending on wether the album contains sub-albums or media."
If you plan to change the design, to allow albums to contain both sub-albums and media (and i have some loose thoughts on this i could put in a in issue if you're interested ... comments from peanut gallery as a person not very familiar with the code) then it would probably make sense to have distinct keys that correspond with the distinct config settings
If you plan to change the design, to allow albums to contain both sub-albums and media (and i have some loose thoughts on this i could put in a in issue if you're interested)
See #408 ;). (This was supported and then removed to simplify the templates maintenance... and I did not think this was a very useful and widely used feature. Support was added back in galleria in #438)
album_information.rst
says......but this only seems to apply to sorting "sub albums" because it's only used in
Album.sort_subdirs()
Album.sort_medias()
doesn't seem to know/care about eitherself.meta['sort']
so media files are only ever sorted by the (global)medias_sort_attr
setting for the entire gallery.The text was updated successfully, but these errors were encountered: