Manual setting the news category in Zenpage?

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?

Comments

  • 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.
Sign In or Register to comment.