Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-09-05 00:41:50

mrpunkin
Member
Registered: 2004-06-13
Posts: 10
Website

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:

btx_excerpt_v0.9.1.txt

Should do what you want.

Douglas

Last edited by DougBTX (2004-09-05 01:13:00)

Offline

#3 2004-09-05 09:46:29

mrpunkin
Member
Registered: 2004-06-13
Posts: 10
Website

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

#4 2004-09-05 14:34:54

kennethlove666
Member
From: arkansas
Registered: 2004-04-27
Posts: 107
Website

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

Board footer

Powered by FluxBB