Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-10-28 16:05:20
- Logoleptic
- Plugin Author
- From: Kansas, USA
- Registered: 2004-02-29
- Posts: 482
Feeds always showing excerpt in Firefox
I’ve set the preference for syndicating article excerpts to “no,” but Firefox (2 and 3) still show the excerpt if one is available. No other browser does this. It’s important that the excerpt not show, because the excerpt field is being used for related sidebar content instead of summaries.
I’ve tried disabling all plugins, but this doesn’t seem to be a plugin-related issue. Viewing the source of the RSS feed, I see that it contains both body and excerpt text, with the excerpt as the description element. When the description is removed from the feed, only the body shows up.
This seems to be an issue with the way that FF displays the feeds, combined with the excerpt data still being in there. Is there some way around this?
Offline
#2 2008-11-03 01:49:54
- Logoleptic
- Plugin Author
- From: Kansas, USA
- Registered: 2004-02-29
- Posts: 482
Re: Feeds always showing excerpt in Firefox
Bump.
No ideas on how to get around this issue without making custom feeds?
Offline
Re: Feeds always showing excerpt in Firefox
- title
- description
- link
- pubDate
- dc:creator
- guid
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#4 2008-11-03 07:30:50
- Logoleptic
- Plugin Author
- From: Kansas, USA
- Registered: 2004-02-29
- Posts: 482
Re: Feeds always showing excerpt in Firefox
The website isn’t in my profile, and I’m afraid I can’t reveal the address of the in-development site due to the non-disclosure agreements I’ve signed with the client.
That said, what you’re seeing in my own site’s feed is consistent with what I’m noticing in my client’s. For my site, I’ve told Txp to syndicate excerpts only, and the excerpts are what show up in the RSS description
(and Atom summary
). For my client’s site, I’ve opted to syndicate full articles. In their feed the excerpt content still shows up in the same places, along with the article body as a content
element. Firefox, unlike every other browser, displays the description instead of the content.
The frustrating thing is that I’m not even sure this can be called a Firefox issue. As far as I know, there’s no spec or standard for what a client should show if both description
and content
are available.
I guess what I’m wondering is whether there’s a core file I can edit to turn the description/summary off entirely. I haven’t had time to poke around in the code for this myself, and was hoping that someone else might already know the solution. A plugin with the same effect would be even better, but I haven’t been able to find one.
Thanks for your help. :-)
Offline
#5 2008-11-03 07:43:05
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: Feeds always showing excerpt in Firefox
Adam
Try this. Create a public plugin and put this in it (adjust plugin prefix as needed)…
register_callback( '_aam_block_excerpt', 'rss_entry' );
register_callback( '_aam_block_excerpt', 'atom_entry' );
function _aam_block_excerpt()
{
global $thisarticle;
$thisarticle['excerpt'] = '';
}
Hope that helps get you started. It should blanket out excerpts across all articles in your feeds. You can target specific sections etc if you need to.
Get in contact if you need any more help.
Last edited by net-carver (2008-11-03 07:47:16)
— Steve
Offline
#6 2008-11-06 15:46:45
- Logoleptic
- Plugin Author
- From: Kansas, USA
- Registered: 2004-02-29
- Posts: 482
Re: Feeds always showing excerpt in Firefox
That worked like a charm, Steve. Thanks! Do you want to release this plugin, or do you mind if I do? You’ll be credited in the documentation, naturally.
Offline
#7 2008-11-06 16:17:34
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: Feeds always showing excerpt in Firefox
Adam
Go ahead, it’s your work. Glad it worked out for you.
— Steve
Offline
Pages: 1