Page 1 of 1

"Custom Archive" works wrong with "Start Page

Posted: Mon Dec 17, 2007 10:17 pm
by chessnut
I installed "Custom Archive"-Plugin and the "Start Page Category"-Plugin. Unfortunately, custom archive only shows entries of my "Initial view category", and not of all Categories.

I guess this must have something to do with the function "serendipity_fetchEntries" that the plugin uses, to get the entries.

Any suggestions how to fix that bug?

Thanks in advance.

Re: "Custom Archive" works wrong with "Start

Posted: Mon Dec 17, 2007 11:10 pm
by garvinhicking
Hi!

Yes, many plugins will use your fixed start page category, unless you specify another category view. That's actually part of the concept -- if you use the custom archive view, you can override the category though, using the dropdown?

It's because startcat sets $serendipity['GET']['category'], which all other plugins and fetch methods use.

So it's not really a bug, but in your case a feature that's missing. However the issue at hand is conceptional, so if you change it to how you expect it, you will break it for other people who want to have the custom archive only filter what people see by default.

Regards,
Garvin

Re: "Custom Archive" works wrong with "Start

Posted: Tue Dec 18, 2007 8:50 am
by chessnut
garvinhicking wrote: if you use the custom archive view, you can override the category though, using the dropdown?
Unfortunately, this doesn't work. If I select "Sort by category", it shows me only the "Initial view category", and that is meaningless. :(
garvinhicking wrote: It's because startcat sets $serendipity['GET']['category'], which all other plugins and fetch methods use.
Ah, thanks for the hint. So What would I have to do to override that value?
$serendipity['GET']['category'] = null;
?

Re: "Custom Archive" works wrong with "Start

Posted: Tue Dec 18, 2007 10:32 am
by garvinhicking
Hi!

What's the URL where you using it? I don't mean to sort by category, I was talking of picking a category to display?
Ah, thanks for the hint. So What would I have to do to override that value?
$serendipity['GET']['category'] = null;
Yes, you'd need to unset $serendipity['GET']['category'] in the case where the plugin creates its own output.

Regards,
Garvin

Re: "Custom Archive" works wrong with "Start

Posted: Tue Dec 18, 2007 12:43 pm
by chessnut
garvinhicking wrote:I don't mean to sort by category, I was talking of picking a category to display?
There is no such feature as "picking a category to display" by combobox.
garvinhicking wrote: Yes, you'd need to unset $serendipity['GET']['category']
Thanks, that worked perfectly!

I also added something, which I found useful: When the archive is ordered by category, the entries are now ordered by "e.timestamp DESC". This ordering resembles the natural ordering in the blog. And month and year is shown before the entry-title. (e.g. 03/2007:)

Re: "Custom Archive" works wrong with "Start

Posted: Tue Dec 18, 2007 7:17 pm
by garvinhicking
Hi!
There is no such feature as "picking a category to display" by combobox.
Ah, you're right. I must've mixed this up with some other panel, but I don't know which plugin provided it, or if I'm hallucinating :)

Glad to read it worked with your patch!

Regards,
Garvin