Problems with serendipity_plugin_showentris

Creating and modifying plugins.
Post Reply
Guest

Problems with serendipity_plugin_showentris

Post by Guest »

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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problems with serendipity_plugin_showentris

Post by garvinhicking »

In fact this was a bug :)

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;
        }
I just fixed that in CVS as well, version 1.2 of the plugin.

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/
Guest

Post by Guest »

Thx a lot!
Post Reply