New Entries Plugin - cannot determine current category

Creating and modifying plugins.
Post Reply
Posts: 17
Joined: Tue Nov 27, 2012 4:22 am

New Entries Plugin - cannot determine current category

Post by shsp » Tue Mar 12, 2013 12:06 am

The new entries plugin should only show the entries for the category of the post being shown. Is there another plugin which does this? I noticed in the configuration you can chose the category, but I am interesting in the plugin deriving the category from that being shown. Thanks.

User avatar
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Re: New Entries Plugin - cannot determine current category

Post by garvinhicking » Tue Mar 12, 2013 5:13 pm


Which plugin exactly are you talking of?

Some plugins have the option "Current category" to do that; the plugin can be patched to retrieve $serendipity['GET']['category'] for the current category. This does not apply to single entry views, because entries with multiple categories could occur, so viewing an entry cannot 100% safely deduce which category it belongs to.

The serendipity_event_categorytemplates plugin allows to actually set the category to the category of an entry in single entry view, and also allows to use the first category when multiple categories are used. So you might want to use this plugin in extension for that.

# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy:
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby:

Post Reply