Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-12 22:15:16

arthuc01
New Member
From: Edinburgh, UK
Registered: 2004-04-16
Posts: 4
Website

Excerpt not displaying

Hi Guys,

Sorry but this doesn’t seem to be obvious to me but i’ve tried using the code from
http://textpattern.com/faq/24/how-do-i-show-only-an-excerpt-in-article-lists

 <txp:if_excerpt>

    <!-- this article has an excerpt -->

    <div class="excerpt">

    <txp:excerpt />

    </div>

    </txp:if_excerpt />


    <div class="body">

    <txp:body />

    </div>

to display only the excerpt on the front page but whatever i do i just end up with a blank page.

I’ve tried putting an excerpt next to an article to test

<txp:article />
<txp:if_individual_article>
<p>
<txp:excerpt />
<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>

but it still doesn’t appear. I have included text in the excerpt box on the Write page and when i reload the page it does appear to have saved properly.

Any suggestions gratefully recieved

McChris

Last edited by zem (2006-01-12 22:22:27)

Offline

#2 2006-01-12 22:23:47

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

Re: Excerpt not displaying

whatever i do i just end up with a blank page.

Please see the FAQ.


Alex

Offline

#3 2006-01-12 22:32:55

arthuc01
New Member
From: Edinburgh, UK
Registered: 2004-04-16
Posts: 4
Website

Re: Excerpt not displaying

Sorry I don’t mean blank page in that respect just blank as in no articles are listed and/or no excerpt appears. Page is still styled and txp body will display hapilly.

Sorry for any confusion

Offline

#4 2006-01-12 23:10:00

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

Re: Excerpt not displaying

</txp:if_excerpt />

There’s one problem: an extra closing slash.


Alex

Offline

Board footer

Powered by FluxBB