Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-23 18:52:18

toreun
New Member
Registered: 2006-01-23
Posts: 2

Excerpts not Displaying

Hi everyone,

I’m rather new to TextPattern and am somewhat lost in the documentation, etc. Sorry if this has been posted before, but I’m trying to style my page and the excerpts aren’t displaying, only full posts. I try using <txp:excerpt /> instead of <txp:body />, but nothing appears.
Is there a setting I’m missing? I defined an excerpt when I wrote the article.

Thanks

[ed: please read the FAQ before posting]

Last edited by zem (2006-01-23 23:15:30)

Offline

#2 2006-01-23 22:17:51

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Excerpts not Displaying

My favourite bit of code. This is for your default/article form template.

<code><div class=“post”>
<txp:if_article_list>
<txp:if_excerpt>
<txp:excerpt />
<txp:permlink>But there’s more</txp:permlink>
<txp:else />
<txp:body />
</txp:if_excerpt>
<txp:else />
<txp:body />
</txp:if_article_list>
<p class=“commentlink”><txp:comments_invite /></p>
</div></code>


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2006-01-23 23:32:52

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Excerpts not Displaying

I try using <txp:excerpt /> instead of <txp:body />, but nothing appears.
Is there a setting I’m missing?

You’re not missing a setting. Most likely you’re editing the wrong form. Some help here. Get that working first before you try anything more complicated.

There’s a general excerpt howto here.


Alex

Offline

Board footer

Powered by FluxBB