Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
XSLT to add a stylesheet to RSS
How would I go about using XSLT to add a style sheet to the RSS output by Textpattern?
Mark
Offline
Re: XSLT to add a stylesheet to RSS
Hi Mark, That’s not something I’ve ever tried. Perhaps you can do it if you manually construct your RSS feed. See this thread for a beginning. That shows how you can create a custom form type with a self-defined content header (check it matches correctly for an RSS/Atom feed). You have to build your own rss feed using txp tags but that then gives you the option to insert a call to your XLST file.
You can then call your feed with yoursite.com/?f=custom-feed-form-name and it will be served with the specified content headers. If you want a cleaner url, you can add a redirect to your .htaccess file that translates a cleaner url to the ?f=… url.
There are a couple of gotchas that etc mentions in that thread, but if I recall not totally insurmountable.
TXP Builders – finely-crafted code, design and txp
Offline
Re: XSLT to add a stylesheet to RSS
Turns out XSLT is being deprecated, so moving on . . .
Mark
Offline
Pages: 1