New Entries Plugin - cannot determine current category

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

New Entries Plugin - cannot determine current category

Post by shsp » Tue Mar 12, 2013 1: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
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: New Entries Plugin - cannot determine current category

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

Hi!

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.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Post Reply