No RSS feed for all categories?

Found a bug? Tell us!!
puck
Regular
Posts: 14
Joined: Mon Apr 30, 2007 10:55 am
Location: New Zealand

No RSS feed for all categories?

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

Re: No RSS feed for all categories?

Post 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
# 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/
puck
Regular
Posts: 14
Joined: Mon Apr 30, 2007 10:55 am
Location: New Zealand

Re: No RSS feed for all categories?

Post 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!
chessnut
Regular
Posts: 22
Joined: Wed Jul 18, 2007 9:57 am

Re: No RSS feed for all categories?

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

Re: No RSS feed for all categories?

Post 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
# 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/
chessnut
Regular
Posts: 22
Joined: Wed Jul 18, 2007 9:57 am

Re: No RSS feed for all categories?

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

Re: No RSS feed for all categories?

Post 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
# 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/
puck
Regular
Posts: 14
Joined: Mon Apr 30, 2007 10:55 am
Location: New Zealand

Re: No RSS feed for all categories?

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

Re: No RSS feed for all categories?

Post 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
# 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/
puck
Regular
Posts: 14
Joined: Mon Apr 30, 2007 10:55 am
Location: New Zealand

Re: No RSS feed for all categories?

Post 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...
puck
Regular
Posts: 14
Joined: Mon Apr 30, 2007 10:55 am
Location: New Zealand

Re: No RSS feed for all categories?

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

Re: No RSS feed for all categories?

Post by garvinhicking »

Hi!


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

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/
puck
Regular
Posts: 14
Joined: Mon Apr 30, 2007 10:55 am
Location: New Zealand

Re: No RSS feed for all categories?

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

Re: No RSS feed for all categories?

Post 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
# 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/
puck
Regular
Posts: 14
Joined: Mon Apr 30, 2007 10:55 am
Location: New Zealand

Re: No RSS feed for all categories?

Post 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!
Post Reply