Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-12-14 13:57:57

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: Make future articles appear in RSS feeds?

Hi Jeff,

Would this work if I’m hand-rolling an RSS feed using a page template?


Cheers,
Jon VC#9

Offline

#14 2006-12-14 14:09:01

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Make future articles appear in RSS feeds?

In theory I think you could do that. It’d be somewhat messy. You would need to also add right at the very beginning of the page (for an RSS feed):

<txp:php>header("Content-Type: application/rss+xml; charset=utf-8"); header("Connection: close");</txp:php>

That’s because before Textpattern sends the page, it sends the html content type, which would be wrong for a feed.

I haven’t tried that myself, though, so I’m not sure if that’d work correctly.

Offline

#15 2006-12-14 16:19:26

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: Make future articles appear in RSS feeds?

Sure, I’ve done this, I just wondered if I was using a template whether it would bypass rss.php. I guess I’ll just have to try it and see! Thanks!


Cheers,
Jon VC#9

Offline

#16 2006-12-15 13:46:20

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Make future articles appear in RSS feeds?

I just wondered if I was using a template whether it would bypass rss.php

No, it wouldn’t; it will have to be at it’s own url.

Offline

#17 2006-12-15 15:58:13

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: Make future articles appear in RSS feeds?

Yes, of course it would have to be at it’s own URL, so it wouldn’t use rss.php would it?


Cheers,
Jon VC#9

Offline

#18 2006-12-15 16:18:54

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Make future articles appear in RSS feeds?

I’m not sure what you’re asking/stating. We might both be saying the same thing, so I’ll just quickly elaborate.

Say you created your event “feed” by making a new section named events-feed. When events-feed is loaded up, it would display as your custom-made feed, assuming all goes well. In that instance, yes, the built-in feed engine wouldn’t try and interfere.

(It would only do so if you actually tried to invoke it by loading events-feed?rss=1, for example).

Offline

#19 2006-12-15 20:50:07

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: Make future articles appear in RSS feeds?

Yes, it sounds like were talking about the same thing after all! That confirmed it anyway…


Cheers,
Jon VC#9

Offline

Board footer

Powered by FluxBB