Opened 15 years ago
Closed 12 years ago
#19017 closed defect (bug) (fixed)
No way to add XSL to Feeds
| Reported by: | pathawks | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | Feeds | Version: | 3.2.1 |
| Severity: | minor | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
To add XSL to a feed, for nicer display of feeds in browser, a line needs to be inserted before the root RSS tag.
For a plugin to add the correct code, there should be an action between <?xml?> and <rss>`
Perhaps something like <?php do_action('rss2_xsl'); ?> on line 12 of feed-rss2.php?
Attachments (3)
Change History (10)
#2
follow-up:
↓ 3
@
15 years ago
Correct me if I'm wrong, but it looks like Advanced RSS is only a styled RSS widget that you can include in your sidebar.
I am looking for something that will change the way a site's feed will look when viewed in a browser, similar to Feedburner's 'BrowserFriendly' option.
#3
in reply to: ↑ 2
@
15 years ago
- Keywords has-patch added; needs-patch removed
Replying to pathawks:
Correct me if I'm wrong, but it looks like Advanced RSS is only a styled RSS widget that you can include in your sidebar.
Sorry, my mistake.
Attaching at patch that adds a pre action to the various feeds.
@
15 years ago
Add an action after the XML declaration in feeds to allow the insertion of style information (and anything else)
#5
@
12 years ago
- Keywords needs-docs easy added
- Milestone Awaiting Review → 4.0
Refreshed - needs docs for hooks
#6
@
12 years ago
- Keywords commit added; needs-docs easy removed
19017.3.diff leverages a single hook, rss_tag_pre, passing context for the various types of feeds and adds hook docs.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
FWIW there are a few plugins out there that do this sort of thing, e.g., Advanced RSS. But if a new action is added, I think it should be more generic and future-proof - something like
rss_pre, maybe.