![]() |
|
Imrovment the page navigation in album.php - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Imrovment the page navigation in album.php (/thread-10244.html) |
Imrovment the page navigation in album.php - ayad - 2012-07-29 Hallo I use Zenphoto version 1.4.3. album.php desplays 1 even when the whole album just one page. If you also see it shouldn't, here how I fix it in template-functions.php [line 826]: ` if(count($nav) == 1){ } else{ if($current == 1) { echo '1'; } else { printLink($nav[1], 1, gettext("Page 1")); } } ` I use theme garland and in zen.css [line 233] ul.pagelist li.current a { but li.current is not a link I hope this could be somehow useful. Imrovment the page navigation in album.php - acrylian - 2012-07-29 You never should hack core files, especially if you can solve this on the theme using `hasNextPage()` and `hasPrevPage()`. [i]but li.current is not a link[/i] No because it does not makes sense to link from a page to the page itself. |