View previous topic :: View next topic |
Author |
Message |
Aussie Dave
Joined: 09 Feb 2006 Posts: 17
|
Posted: Tue May 23, 2006 1:57 am Post subject: Limiting text in RSS feed |
|
|
Hi,
As a way to increase traffic to my blog, I would like to only have an excerpt of my posts in the RSS feed, but the full posts on my main blog page. Is there a way to do this (without having to show posts as excerpts on my blog main page itself)? _________________ http://www.israellycool.com |
|
Back to top |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Tue May 23, 2006 2:00 pm Post subject: Re: Limiting text in RSS feed |
|
|
By default, our system will publish the excerpt in an RSS feed if an excerpt was included in the post. And our category template will also show that excerpt if it existed... It is however possible to customize the category template to show the full text of the article despite the fact that an excerpt was used; this allows you to add an excerpt to your post which will only appear in your RSS feed while the full text will appear on your blog pages.
You'll need to customize the category template by looking for this text:
Code: | {{if excerpt}}
{{excerpt}} <span><a href="{{view_url}}" align="right" border="0" width="13" height="13"><gettext></a> <strong>»</strong></span>
{{else}}
{{body}}
{{/if}} |
That is the code that says, if there's an excerpt, show it, along with a link to the Permanent Link, and if there's not an excerpt, then show the full text of the article.
Just change that code block to this:
Done. Now your category pages will display the full text, even if you use an excerpt for the purpose of having a summary in your RSS feed. |
|
Back to top |
|
|
Aussie Dave
Joined: 09 Feb 2006 Posts: 17
|
Posted: Wed May 24, 2006 1:10 am Post subject: |
|
|
Thanks John. Sounds like a nice workaround, although long-term it would be nice to be able to configure this separately from the Excerpt setting (since sometimes I would like to show only an excerpt on the blog page). _________________ http://www.israellycool.com |
|
Back to top |
|
|
Search all BlogHarbor support resources.
|
View previous topic :: View next topic |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|