![]() |
|
Manual setting the news category in Zenpage? - 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: Manual setting the news category in Zenpage? (/thread-7644.html) |
Manual setting the news category in Zenpage? - WhiteChrys - 21-09-2010 Hello! My goal is to get a zenpage wrapper around the news article listing so that my client can add extra content to the sidebars. I have copy/pasted the news.php code into a zenpage codeblock, and I am displaying that codeblock in the body of my zenpage. It works great, except I want to restrict it to a single news category. So, I am currently filtering out articles that don't match my target category. The pagination doesn't work with this though. :( So, the ideal solution would be to manually set the news category so that only articles in that category are displayed. To my knowledge, the global $_zp_current_category can only be set from $_GET when the page is initialized. Any thoughts on how to get around this? Manual setting the news category in Zenpage? - WhiteChrys - 21-09-2010 Never mind... I was thinking of the problem backwards. I can actually call the content, extra content and codeblock fields from the news.php file to accomplish what I want. |