I have som problems with the serendipity_plugin_showentris.
I have set the plugin to show 1 entry and just from one specific category. It works fine when I am on the startpage, is on a static page or in that specific category.
But when I go to a another categori, it changes and show the latest entry in that category and doesent show the last entry from the choosen categori.
Has anyone else experienced this and do you have a solution to this problem?
Problems with serendipity_plugin_showentris
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Problems with serendipity_plugin_showentris
In fact this was a bug 
Below the $current_cat string in generate_content you have to add this:
I just fixed that in CVS as well, version 1.2 of the plugin.
Regards,
Garvin
Below the $current_cat string in generate_content you have to add this:
Code: Select all
$c = $this->get_config('category');
if ($c > 0) {
$serendipity['GET']['category'] = (int)$c;
}
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/
# 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/