Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-28 23:18:38

MPov
New Member
From: Canada
Registered: 2008-01-28
Posts: 3
Website

"Read more" or similar function

I am a new blogger and user of TextPattern (I love it so far). I was wondering if there is a built-in or optional function similar to that on http://www.slashdot.org. Articles on that site have a “Read More” link after a brief paragraph.

Cheers and Thank you in advance

Offline

#2 2008-01-28 23:40:46

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: "Read more" or similar function

Use excerpts. In your default form, modify the <txp:body /> tag to:

<txp:if_article_list>
    <txp:excerpt />
    <txp:permlink>Read more</txp:permlink>
<txp:else />
    <txp:body />
</txp:if_article_list>

Offline

#3 2008-01-28 23:56:27

MPov
New Member
From: Canada
Registered: 2008-01-28
Posts: 3
Website

Re: "Read more" or similar function

I just want to verify where I’m going to be inputting that text. If I login click on ‘Presentation’ followed by ‘Forms’ and then ‘default’ on the right side of the page. Is that correct?

Offline

#4 2008-01-29 01:20:28

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: "Read more" or similar function

MPov wrote:

I just want to verify where I’m going to be inputting that text. If I login click on ‘Presentation’ followed by ‘Forms’ and then ‘default’ on the right side of the page. Is that correct?

Yes, that is the default article form. (It is always the form that comes up for editing when you click on the “Forms” tab.)


Code is topiary

Offline

#5 2008-01-29 19:16:51

MPov
New Member
From: Canada
Registered: 2008-01-28
Posts: 3
Website

Re: "Read more" or similar function

Thanks for your help jm and jsoo. I got it working =)

Offline

Board footer

Powered by FluxBB