![]() |
|
howto vary page pagination in zenpage - 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: howto vary page pagination in zenpage (/thread-6183.html) Pages:
1
2
|
howto vary page pagination in zenpage - BertSimons - 24-11-2009 I want to have a different number of articles per page then set on the admin tab depending on which news category I am in. Zenpage documentation gives me a hint: getLimitAndOffset(5); but code like this does nothing... ` ` howto vary page pagination in zenpage - acrylian - 24-11-2009 Yes, that code does nothing (it just gets the values for a db query limit and offset), that function is used only internally within the It's much easier, just use howto vary page pagination in zenpage - BertSimons - 24-11-2009 I should have searched better .. thanks Acryllian! with getOptionList() I could get a array of all options which are set/can be set? howto vary page pagination in zenpage - acrylian - 24-11-2009 Oh, I don't remember the details right now. But you find all options of Zenpage within the main howto vary page pagination in zenpage - sbillard - 24-11-2009 I suppose getOptionList() could be used for seeing all the options. Not what it was intended for, though. Optons are somewhat strange beasts since you can have options associated with specific themes and or specific first level options. The list will only give you what is currently active. Best to use the admin options tabs for your exploration. howto vary page pagination in zenpage - BertSimons - 24-11-2009 putting
on the news.php above the while loop does not change the number of articles as set on the admin tab... also tried setting other options as in setup-option-defaults.php on my index.php also with no result.. howto vary page pagination in zenpage - acrylian - 25-11-2009 Hm, it should actually. Don't know right now why not. Please try "true" instead of "false" then the option will not be changed temporarily but the entry will be overwritten directly in the database. Note that you then have to set it always as the original admin entry is not recreated until you save the option there again. howto vary page pagination in zenpage - BertSimons - 25-11-2009 just found out that the function howto vary page pagination in zenpage - acrylian - 26-11-2009 Good. And howto vary page pagination in zenpage - BertSimons - 26-11-2009 I am getting somewhere, together with your suggestion in an other thread using getNewsArticles() I put together a page that shows only news articles within a defined category and that differs from the default pagination.. one thing though: the printNewsPageListWithNav() does not stay within the category.. ` howto vary page pagination in zenpage - acrylian - 26-11-2009 That function relies on a value that is fetched by May I ask why you do not just call the news.php page by url? That would be much easier than making your own page. howto vary page pagination in zenpage - sbillard - 26-11-2009 BTW, howto vary page pagination in zenpage - BertSimons - 27-11-2009 partially solved it.. I call to the category by uri on my frontpage eg: /zenphoto/news/category/news then depending on the category I am in I set the number of articles per page like this
but... if I use printNewsPageListWithNav() I get: 1 2 3 4 5 6 7 8 9 10 next with page 1 highlighted, which seems correct going to page 2 gives prev 1 2 3 4 5 6 7 8 9 10 next with page 2 highlighted, which seems correct but.. when being on page 2 and click on prev.. being the printPrevNewsPageLink() function so actually I am in need of a printPrevNewsWithinCurrentCategoryPageLink()... Also in the standard zenpage-default theme going to a category shows indeed all the articles within a category but clicking the titlelink also ends up showing single articles with prev/next articles outside the category you were in.. ` ` howto vary page pagination in zenpage - acrylian - 27-11-2009 You can check what category you are in by using this btw.: Actually the pageslist function should do what you want. If it does not we probably have a bug. I will try to reproduce that. On your site you are using 1.2.5 RC1. If that is the version you are testing with I have to request to try the current nightly as we are about to release 1.2.7 on Decemeber 1st. howto vary page pagination in zenpage - acrylian - 27-11-2009 I just could reproduce the prev page issue that looses the category. So it's a bug. howto vary page pagination in zenpage - acrylian - 27-11-2009 Found it, will be fixed in tonight's nightly. Weird, that error seems to have been there unnoticed for quite some time.... howto vary page pagination in zenpage - BertSimons - 27-11-2009 was just going to post that for testing i do use the nightly... my own website is on a host that doesnt fullfill the latest zenphoto requerements but I run the latest nightly somewhere else for testing well if zenphoto would run zenpage instead of wordpress you would have noticed..:-) howto vary page pagination in zenpage - acrylian - 27-11-2009 Alright...;-) Btw, the requirements are more recommendations because we can't test lower PHP versions than those stated. Nevertheless it might work on your webspace without problems. howto vary page pagination in zenpage - BertSimons - 28-11-2009 Hi Arcylian Ugraded to the latest nightly on my testsite ( http://www.thegreenskirt.nl/zenphototest ) now printNewsPageListWithNav() prev/next stays within category and shows correct numbers of page but... going to an single news article from within a category shows printNewsPageListWithNav() with all (eg 7 pages) and prev/next article navigation without regarding the current category howto vary page pagination in zenpage - acrylian - 28-11-2009
|