Page 1 of 2

No RSS feed for all categories?

Posted: Fri Jul 20, 2007 9:03 am
by puck
Hi,

I've installed the Start Page Category plugin to limit the frontpage to only 2 categories. However now I can't provide an RSS feed of *all* categories.

Reading the forum posts it sounds like the default "syndicate this blog" feed should be everything, but it isn't.

Any suggestions?

My blog is http://blog.etc.gen.nz

Cheers!

Re: No RSS feed for all categories?

Posted: Fri Jul 20, 2007 11:06 am
by garvinhicking
Hi!

That's true, the RSS feed always displays what your frontpage display. You need to subscribe to http://blog.etc.gen.nz/rss.php?serendip ... egory]=all if you want to see all categories.

Best regards,
Garvin

Re: No RSS feed for all categories?

Posted: Tue Jul 24, 2007 6:14 am
by puck
garvinhicking wrote:That's true, the RSS feed always displays what your frontpage display. You need to subscribe to http://blog.etc.gen.nz/rss.php?serendip ... egory]=all if you want to see all categories.
Ah, how confusing. :)

So the "All categories" link in the categories sidebar is somewhat misleading. Is it possible to change that to actually be all the categories and to have an RSS feed for it?

Cheers!

Re: No RSS feed for all categories?

Posted: Tue Jul 24, 2007 1:43 pm
by chessnut
puck wrote: So the "All categories" link in the categories sidebar is somewhat misleading. Is it possible to change that to actually be all the categories and to have an RSS feed for it?
That would be really nice!
puck wrote: the default "syndicate this blog" feed should be everything, but it isn't.
Is there a possibility to fix this? it's quite annoying that it only shows the entries of the frontpage.
So: Is it possible to make the /feeds/index.rss2 to show all blog-entries? What do you have to change?

Re: No RSS feed for all categories?

Posted: Tue Jul 24, 2007 1:53 pm
by garvinhicking
Hi!
Ah, how confusing. :)
That's because the Restriction of a frontpage to NOT show all entries affects many parts of Serendipity. :)
So the "All categories" link in the categories sidebar is somewhat misleading. Is it possible to change that to actually be all the categories and to have an RSS feed for it?
That's hard to do, because most people who use the 'Start PAge' Category link exactly don't want this.

You can achieve what you want by enabled the Smarty Templating option of the Categories sidebar plugin, then edit the plugin_categories.tpl file of your template (copy over the one from templates/default/ if your themes doesn't have it). There you can change the all-categories link to point to "index.php?serendipity[categories]=all" and/or insert a RSS icon link.

chessnut:
Is it possible to make the /feeds/index.rss2 to show all blog-entries? What do you have to change?
For that you would need to uninstall the "Start Page category" link, or patch the categories sidebar (or other places) to link to the rss.php?serendipity[categories]=all feed instead.

Best regards,
Garvin

Re: No RSS feed for all categories?

Posted: Tue Jul 24, 2007 2:24 pm
by chessnut
garvinhicking wrote: chessnut:
Is it possible to make the /feeds/index.rss2 to show all blog-entries? What do you have to change?
For that you would need to uninstall the "Start Page category" link, or patch the categories sidebar (or other places) to link to the rss.php?serendipity[categories]=all feed instead.
So I understand it like this: /feeds/index.rss2 is tightly coupled with the entries that are shown on the frontpage, right?
So there is no dirty-hack to make /feeds/index.rss2 to show all entries?

PS. isn't there something wrong with that logic? when i click "syndicate this blog", I want to syndicate to all the entries, and not only to those on the frontpage...

Re: No RSS feed for all categories?

Posted: Tue Jul 24, 2007 2:29 pm
by garvinhicking
Hi!
So I understand it like this: /feeds/index.rss2 is tightly coupled with the entries that are shown on the frontpage, right?
Exactly so, it uses the same methods.
So there is no dirty-hack to make /feeds/index.rss2 to show all entries?
Of course there is, you could ugly-dirtily hack the rss.php file and insert the PHP code

Code: Select all

$_GET['serenditipity']['categories'] = 'all';
to force all RSS-Feeds to deliver the entries for all categories.
PS. isn't there something wrong with that logic? when i click "syndicate this blog", I want to syndicate to all the entries, and not only to those on the frontpage...
People usually want to syndicate exactly what they offer on their frontpage. That's what was requested the past 5 years only, you're the first person sine the invention of Serendipity to ask for a RSS feed that displays different content than the frontpage of the blog. :-)

Best regards,
Garvin

Re: No RSS feed for all categories?

Posted: Wed Jul 25, 2007 10:49 pm
by puck
garvinhicking wrote:
PS. isn't there something wrong with that logic? when i click "syndicate this blog", I want to syndicate to all the entries, and not only to those on the frontpage...
People usually want to syndicate exactly what they offer on their frontpage. That's what was requested the past 5 years only, you're the first person sine the invention of Serendipity to ask for a RSS feed that displays different content than the frontpage of the blog. :-)
That makes two people.

I'm quite happy with the idea that the RSS link for the actual page is only what is displayed on the page, but a link saying "All categories" which is only what is displayed on the frontpage seems pretty crazy and very unintuitive to me.

Ah well.

I'll do as you suggest and enable Smarty and change the template.

Re: No RSS feed for all categories?

Posted: Wed Jul 25, 2007 11:01 pm
by garvinhicking
Hi!
I'm quite happy with the idea that the RSS link for the actual page is only what is displayed on the page, but a link saying "All categories" which is only what is displayed on the frontpage seems pretty crazy and very unintuitive to me.
It's simply that the feature to have something different than a "all cateogories" frontpage was invented long after the "all categories" link was there. And because the functionality only is possible with external plugins and not by default, changing the label for 'All Categories' would maybe look odd to longtime s9y users who are used to the title of that link.

I'm not saying that a label like "Blog Frontpage" wouldn't be better (it would be, I think), it's just that it breaks old terminology for no apparent reason to the majority of s9y users. So I'm just trying to give a reason for why it's like that. :)

Best regards,
Garvin

Re: No RSS feed for all categories?

Posted: Thu Jul 26, 2007 6:27 am
by puck
garvinhicking wrote:For that you would need to uninstall the "Start Page category" link, or patch the categories sidebar (or other places) to link to the rss.php?serendipity[categories]=all feed instead.
Hi Garvin,

I've tried using rss.php?serendipity[categories]=all but I still get only the entries shown on the frontpage. i.e.:

http://blog.etc.gen.nz/rss.php?serendip ... ories]=all

I've also tried specifying other specific categories and I still get only the frontpage ones...

Re: No RSS feed for all categories?

Posted: Thu Jul 26, 2007 6:38 am
by puck
garvinhicking wrote:You can achieve what you want by enabled the Smarty Templating option of the Categories sidebar plugin, then edit the plugin_categories.tpl file of your template (copy over the one from templates/default/ if your themes doesn't have it). There you can change the all-categories link to point to "index.php?serendipity[categories]=all" and/or insert a RSS icon link.
Hmmm, I've just tried doing this as well and it doesn't work either.

Oh well...

Re: No RSS feed for all categories?

Posted: Thu Jul 26, 2007 10:07 am
by garvinhicking
Hi!


Sorry, you need to use the link I first posted: It's serendipity[category] not serendipity[categories].

Regards,
Garvin

Re: No RSS feed for all categories?

Posted: Thu Jul 26, 2007 11:52 am
by puck
Hi Garvin,
garvinhicking wrote:Sorry, you need to use the link I first posted: It's serendipity[category] not serendipity[categories].
Sorry still no dice...

Re: No RSS feed for all categories?

Posted: Thu Jul 26, 2007 12:15 pm
by garvinhicking
Hi!

Your browser uses conditional get when you called the URL once. Try:

http://blog.etc.gen.nz/rss.php?serendip ... e&blabla=1

instead?

If that still doesn't work, which category do you use as the startpage category, and which plugin version are you using?

Regards,
Garvin

Re: No RSS feed for all categories?

Posted: Sat Jul 28, 2007 8:18 am
by puck
Hi,
garvinhicking wrote:Your browser uses conditional get when you called the URL once. Try:

http://blog.etc.gen.nz/rss.php?serendip ... e&blabla=1
Odd, while that didn't work from work, it does work from home.

I've added a RewriteRule that converts the normal RSS to a variation on that.

Thanks!