Page 1 of 1

Problems with serendipity_plugin_showentris

Posted: Thu Dec 08, 2005 4:20 pm
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?

Re: Problems with serendipity_plugin_showentris

Posted: Thu Dec 08, 2005 4:37 pm
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

Posted: Thu Dec 08, 2005 4:40 pm
by Guest
Thx a lot!