I would like to add an additional navigation feature, on the top of each album page, to be able to select the 'Next' Album, or the Previous Album. This would make it much easier to swiftly browse through a large set of albums.
Without this feature, you need to go up one level to view the parent album, and then go down and select the child album. And then up again to go down.... So to speak.
I understand this can be done with a Template, and I have found the place in Index.tpl (using the default theme) where the code should be added. But I am unaware of how to retrieve the information on which albums is the previous/next, based on the album I am currently viewing.
Attached is a mock-up screenshot on how I want the navigation to work.
"Prev" should be a link to " /Blomgren / 1997"
"Next" should be a link to " /Blomgren / 1999 "
Any pointers on how to get this info would be greatly appreciated!
**Reported by miblo69 on 20 Dec 2012 15:15**
**Version:** 2.4.6
I would like to add an additional navigation feature, on the top of each album page, to be able to select the 'Next' Album, or the Previous Album. This would make it much easier to swiftly browse through a large set of albums.
Without this feature, you need to go up one level to view the parent album, and then go down and select the child album. And then up again to go down.... So to speak.
I understand this can be done with a Template, and I have found the place in Index.tpl (using the default theme) where the code should be added. But I am unaware of how to retrieve the information on which albums is the previous/next, based on the album I am currently viewing.
Attached is a mock-up screenshot on how I want the navigation to work.
"Prev" should be a link to " /Blomgren / 1997"
"Next" should be a link to " /Blomgren / 1999 "
Any pointers on how to get this info would be greatly appreciated!
~Mike
**Additional information:** http://piwigo.org/forum/viewtopic.php?id=20999
[Piwigo Bugtracker #2812](http://piwigo.org/bugs/view.php?id=2812)
<!-- github-sync-id:97226505 -->
Any chance for an update on this Feature request? I'd be more than happy to develop a plugin/theme combo to support this, but I would need some pointers on which events to use, and how to derive the Previous/Next album. Either by using existing functions, or through a SQL Query.
Thanks,
~Mike
**Comment posted by miblo69 on 16 Apr 2013 14:48**
Any chance for an update on this Feature request? I'd be more than happy to develop a plugin/theme combo to support this, but I would need some pointers on which events to use, and how to derive the Previous/Next album. Either by using existing functions, or through a SQL Query.
Thanks,
~Mike
<!-- github-comment-id:124892990 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Reported by miblo69 on 20 Dec 2012 15:15
Version: 2.4.6
I would like to add an additional navigation feature, on the top of each album page, to be able to select the 'Next' Album, or the Previous Album. This would make it much easier to swiftly browse through a large set of albums.
Without this feature, you need to go up one level to view the parent album, and then go down and select the child album. And then up again to go down.... So to speak.
I understand this can be done with a Template, and I have found the place in Index.tpl (using the default theme) where the code should be added. But I am unaware of how to retrieve the information on which albums is the previous/next, based on the album I am currently viewing.
Attached is a mock-up screenshot on how I want the navigation to work.
"Prev" should be a link to " /Blomgren / 1997"
"Next" should be a link to " /Blomgren / 1999 "
Any pointers on how to get this info would be greatly appreciated!
~Mike
Additional information: http://piwigo.org/forum/viewtopic.php?id=20999
Piwigo Bugtracker #2812
Comment posted by miblo69 on 16 Apr 2013 14:48
Any chance for an update on this Feature request? I'd be more than happy to develop a plugin/theme combo to support this, but I would need some pointers on which events to use, and how to derive the Previous/Next album. Either by using existing functions, or through a SQL Query.
Thanks,
~Mike
Implemented in plugin PrevNext http://piwigo.org/ext/extension_view.php?eid=787