![]() |
|
Next/Previous links? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: Next/Previous links? (/thread-5296.html) |
Next/Previous links? - Skellington - 08-06-2009 I'm using my own theme. I'd like to have 'next' and 'previous' buttons on the news page just like the ones on image pages in Zenphoto, but I'm not sure what goes in the if-statement: For the image pages, it's: `
` I thought that "GetNextNewsPageURL" would replace "getNextImageURL", but I don't know what replaces "hasNextImage" in the if statement. Here's the current news page, with no next/previous buttons: I tried it without the if-statement, and it the page loads fine, but clicking the button gives a MySQl error: "MySQL Query ( (SELECT title as albumname, titlelink, date, @type1 as type FROM Next/Previous links? - acrylian - 09-06-2009 Please read this http://www.zenphoto.org/2009/03/theming-tutorial/#part-4 and also look at the zenpage-default theme. Next/Previous links? - Skellington - 09-06-2009 Sorry, I should have been clearer -- in the default Zenpage theme, "PrintPrevNewsLink" calls a link with the whole article title in it. That works! Bu I'd like it to just say "Prev" or "Next", which requires a different function, and that doesn't work. Next/Previous links? - acrylian - 09-06-2009 Ok, I indeed did not understand. Then you have to build the link yourself using these functions: |