Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-02-26 11:05:12

chetas
New Member
Registered: 2009-02-26
Posts: 3

hello- having blog like main page.. not full article.

hello im new to textpattern. i tried search but wasnt able to find what i wanted.

the problem i have is that the main page displays the full article- i want it to display just the main top bit 0 first couple of setences, and the rest with a read more link. thought this feature might be a standard feature.

hope someone can help

thank you

Last edited by chetas (2009-02-26 11:05:41)

Offline

#2 2009-02-26 11:32:57

gerhard01
Plugin Author
Registered: 2006-12-07
Posts: 108

Re: hello- having blog like main page.. not full article.

FAQ

Offline

#3 2009-02-27 00:02:11

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: hello- having blog like main page.. not full article.

Just in case you can’t figure it out.

In your write panel their is a textarea called Excerpt! This is where you have those intro lines, and then for you form, use this tag
<txp:excerpt />


~ Cameron

Offline

#4 2009-02-27 04:22:41

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: hello- having blog like main page.. not full article.

i want it to display just the main top bit 0 first couple of setences, and the rest with a read more link.

You can also use the Rob Sable plugin to grab an excerpt from articles with no data in the excerpt field.

Replace <txp:excerpt /> with <txp:rss_auto_excerpt /> (and include attributes to customize the output more), and you get an excerpt for any article, including a “read more” link. Articles that have data in the excerpt field already will display that data instead of generating one from body text.

There are myriad ways to customize the output of this tag, and it’s useful ina very wide variety of circumstances. It’s an essential plugin in my view.

Offline

Board footer

Powered by FluxBB