Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-02-27 05:01:54
- amyng
- Member
- Registered: 2007-01-05
- Posts: 55
Excerpt not working, using rss_unlimited_categories
Hi everyone!
I’m trying to add an excerpt to a particular post on my front page because it’s too long, but when I tried all the tricks in the FAQ, etc, the excerpt does not show, only the full article. I’m using rss_unlimited categories and am wondering if that’s why I am unable to use the excerpt function?
Here’s my default template:
<!-- center -->
<div id="content">
<txp:zem_prblock target="_blank">
<txp:if_article_list>
<txp:rss_uc_article_list limit="10" section="article" />
</txp:if_article_list>
<txp:if_individual_article>
<txp:article />
<txp:else />
<div id="turner">
<div class="turner_prev">
<p><txp:older><txp:text item="<< older posts" /></txp:older>
</div>
<div class="turner_next">
<txp:newer><txp:text item="newer posts >>" /></txp:newer></p>
</txp:if_individual_article>
</txp:zem_prblock>
</div>
</div>
</div>
Offline
#2 2009-02-27 05:05:32
- amyng
- Member
- Registered: 2007-01-05
- Posts: 55
Re: Excerpt not working, using rss_unlimited_categories
And here’s my article form. Any help would be most appreciated, thank you!
<h3><txp:permlink><txp:title /></txp:permlink></h3> <br><h4>Posted by <b><txp:author link="1" /></b> on <txp:posted /></h4>
<txp:body />
<txp:comments_invite wraptag="p" />
<div class="divider">
</div>
Offline
#3 2009-02-27 12:47:45
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Excerpt not working, using rss_unlimited_categories
<h3><txp:permlink><txp:title /></txp:permlink></h3> <br><h4>Posted by <b><txp:author link="1" /></b> on <txp:posted /></h4>
<txp:if_excerpt>
<txp:excerpt />
<txp:else />
<txp:body />
</txp:if_excerpt>
<txp:comments_invite wraptag="p" />
<div class="divider">
</div>
Offline
#4 2009-02-28 01:58:15
- amyng
- Member
- Registered: 2007-01-05
- Posts: 55
Re: Excerpt not working, using rss_unlimited_categories
Thanks Els!
That did the trick for the front page, but when I clicked onto the “read more” button, it didn’t load the whole article on the comments page, just the excerpt. Wondering what could be wrong…
Here’s what I added to the code:
<txp:if_excerpt>
<txp:excerpt />
<p><txp:permlink>read more</txp:permlink></p>
<txp:else />
<txp:body />
</txp:if_excerpt>
Offline
#5 2009-02-28 02:08:02
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Excerpt not working, using rss_unlimited_categories
Sorry, overlooked that you are using one article form for as well the article lists as the individual articles.
<txp:if_article_list>
<txp:if_excerpt>
<txp:excerpt />
<p><txp:permlink>read more</txp:permlink></p>
<txp:else />
<txp:body />
</txp:if_excerpt>
</txp:if_article_list>
<txp:if_individual_article>
<txp:body />
</txp:if_individual_article>
Offline
#6 2009-02-28 04:06:00
- amyng
- Member
- Registered: 2007-01-05
- Posts: 55
Re: Excerpt not working, using rss_unlimited_categories
Oooh, thank you so much Els! :)
I’ve been trying everything, and thought that I should trouble you guys as a last resort!
Much gratitude,
x
Amy
Offline