![]() |
|
Current album page in my page title - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: Current album page in my page title (/thread-6670.html) |
Current album page in my page title - wumpus - 28-02-2010 I want to append "(Page 2)" to my html on each album when I am on page 2 or higher. This way Google isn't indexing duplicate page titles for my paginated albums. I'm using v1.26 currently. I believe this involves an if statement using the function getAlbumPage() but I'm not really a coder so if someone could point me in the right direction I'd be grateful. Thanks! Current album page in my page title - gjr - 28-02-2010 just guessing, for album.php, to get page number in when the album has more than one page.... ` ` or if you want page numbers always... ` ` Current album page in my page title - gjr - 28-02-2010 looking at that, not sure if the function returns an integer or string, if that doesn't work you could try replaceing the if with... ` Current album page in my page title - wumpus - 28-02-2010 Thanks for your help. After trying what you said, I finally realized that getAlbumPage only applies to the current image, not the current album (it kept returning 0). I searched further and discovered there is a getCurrentPage() function(!). So this is the code that worked (again, thanks to you for getting me here): ` ` Current album page in my page title - reneesanguinetti - 18-06-2011 I also would like to add page numbers to the titles on page 2 or higher. Currently using zpfocus_v1.4. Where do I place this code? Thank-you. Current album page in my page title - acrylian - 18-06-2011 You should open a new thread as you question is theme specific. I really doubt that the theme's author will notice this otherwise... Current album page in my page title - Michel Gagnon - 19-06-2011 It's indeed theme-specific. But as a general principle: Current album page in my page title - wdiggles - 21-06-2011 @reneesanguinetti If you mean the page title as seen in google search results you would put the code in between the tags of your album.php file. Just added it to my site and it works wonderfully. |