Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-02-18 04:54:24
- FlyingDonkey
- Member
- Registered: 2006-02-16
- Posts: 10
Excerpt -- I just can't get it to work.
I’ve followed the FAQ to the letter, and I think I’m just missing something really obvious.
The closest I’ve come to succeeeding is using method 1 in the FAQ. The result is 10 “read more” links and a “previous” link.
http://textpattern.com/faq/24/how-do-i-show-only-an-excerpt-in-article-lists
I can re-create this if anyone’s interested in seeing it.
Thanks
Offline
#2 2006-02-18 04:57:56
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Excerpt -- I just can't get it to work.
Either 1 or 2 should work fine. Can you post exactly the tags and forms you’re using?
Offline
#3 2006-02-18 05:09:19
- FlyingDonkey
- Member
- Registered: 2006-02-16
- Posts: 10
Re: Excerpt -- I just can't get it to work.
How do I post this code?
In my default template:
<!— center —>
<div id=“content”>
<txp:article form=“default” listform=“excerpt” />.
<txp:if_individual_article>
<p>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>
</p>
</txp:if_individual_article>
<txp:if_article_list>
<p>
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</p>
</txp:if_article_list>
</div>
In my excerpt form: (I think something is missing here)
<txp:excerpt />
<txp:permlink>read more</txp:permlink>
Anything else?
Last edited by FlyingDonkey (2006-02-18 05:10:24)
Offline
#4 2006-02-18 05:39:20
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Excerpt -- I just can't get it to work.
That all looks right.
Do your articles have excerpts defined? You have to enter them in the box labelled “excerpt” in the write tab in order for them to show up.
Otherwise, if you want your excerpts dynamically generated, then you need to use an excerpt plugin (same tags and form, just replace <txp:excerpt />
with whatever excerpt plugin tag you choose).
Offline
#5 2006-02-18 05:49:47
- FlyingDonkey
- Member
- Registered: 2006-02-16
- Posts: 10
Re: Excerpt -- I just can't get it to work.
That explains it… I hadn’t noticed that Excerpt window yet. Thanks.
Offline
Pages: 1