Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-08-28 17:01:58

BryanA.
Member
From: Maryland, USA
Registered: 2007-08-12
Posts: 104

Lost ability to show Excerpts.

It’s kind of a “How do I…” except it’s Presentation. I’m sorry you guys are so smart and helpful. I’ll never go away! :D

My code is born out of another member’s question that delivered a knock-out perfect answer to creating four, percentage-based columns. I LOVE IT.

Oddly, Excerpts don’t take the place of full articles anymore. What’s missing from this code?

<hr width=760/>
</center>

<div id=“leftcontent”><txp:article limit=“4” pageby=“16” /></div>
<div id=“centerleftcontent”><txp:article limit=“4” pageby=“16” offset=“4” /></div>
<div id=“centerrightcontent”><txp:article limit=“4” pageby=“16” offset=“8” /></div>
<div id=“rightcontent”><txp:article limit=“4” pageby=“16” offset=“12” /></div>

<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:else /> <p><txp:older><txp:text item=“older” /></txp:older> <txp:newer><txp:text item=“newer” /></txp:newer></p>
</txp:if_individual_article>

<!— footer —>
<div id=“feedercontent”><txp:output_form form=“feeder” /></div>
</div>

The ugly page is meant to mimic a very old HTML page that looked just like this. My three readers have come to expect this appearance since about 2001. That TXP can do this AND reduce my workload to AN EIGHTH the time – TXP all the way.


Voice Actor – starting up a site for that good book stuff.

Offline

#2 2007-08-28 17:06:22

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Lost ability to show Excerpts.

What’s in your “default” form?

Offline

#3 2007-08-28 17:12:02

BryanA.
Member
From: Maryland, USA
Registered: 2007-08-12
Posts: 104

Re: Lost ability to show Excerpts.

As follows:

<h3><txp:permlink><txp:title /></txp:permlink>
<br />
&#183; <txp:posted /></h3>

<txp:body />

<txp:comments_invite wraptag=“p” />

<div class=“divider”><img src=”<txp:site_url />images/1.gif” width=“100%” height=“1” alt=”—-” title=”“ /></div>


Voice Actor – starting up a site for that good book stuff.

Offline

#4 2007-08-28 17:17:46

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Lost ability to show Excerpts.

So, you want to display an excerpt if an excerpt is available or the body if no excerpt is available? Then:

Replace <txp:body /> with:

<txp:if_excerpt><txp:excerpt /><txp:else /><txp:body /></txp:if_excerpt>

Offline

#5 2007-08-28 17:18:44

BryanA.
Member
From: Maryland, USA
Registered: 2007-08-12
Posts: 104

Re: Lost ability to show Excerpts.

edit
To display the body if no excerpt is available.

Aw nuts. We’re discussing www.dinarius.com/ATF
and I checked the default Form from gawkercomputers.com
I see it. It didn’t even occur to me that the Form was being called upon so I never compared the two.

I think I need a break – you can put me back to Alpha.

<txp:if_excerpt>
<txp:excerpt />
<txp:permlink>More…</txp:permlink>
<txp:else />
<txp:body />
</txp:if_excerpt>
<txp:else />
<txp:body />

That fits right in there, doesn’t it…

Last edited by BryanA. (2007-08-28 17:23:54)


Voice Actor – starting up a site for that good book stuff.

Offline

#6 2007-08-28 17:24:36

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Lost ability to show Excerpts.

You can remove the last two lines there (after </txp:if_excerpt>)

Offline

Board footer

Powered by FluxBB