Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Looking for a specific Excerpt plugin...
Hello all,
I tried searching to no avail. Im looking for something that will fit within the article “Form” to show the excerpt if available, but if there is no excerpt just show the body instead. This would allow me to just use it the same way I have, but with some of my longer 2 page posts would just show an excerpt. Anyone know? Thanks.
Bryan
.:Mrpunkin.coM:.
Offline
#2 2004-09-05 01:12:39
- DougBTX
- Archived Plugin Author
- Registered: 2004-05-23
- Posts: 22
Re: Looking for a specific Excerpt plugin...
Give this a shot:
Should do what you want.
Douglas
Last edited by DougBTX (2004-09-05 01:13:00)
Offline
Re: Looking for a specific Excerpt plugin...
Thanks Doug. Problem is that even when the full post is shown it still shows the “more” tag. If there was a way to fix this it would be perfect!
Bryan
.:Mrpunkin.coM:.
Offline
Re: Looking for a specific Excerpt plugin...
get the if_empty plugin.
<code>
<txp:if_empty field=“excerpt”>
<txp:body />
</txp:if_empty>
<txp:if_not_empty field=“excerpt”>
<txp:excerpt />
</txp:if_not_empty>
</code>
the field might not be right, i can’t remember the attribute off the top of my head. and, if you like the way pfa_beginning or btx_excerpt work, use them in place of <txp:excerpt />.
Listen to Kenneth
Offline