Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-28 01:52:09

jauhari
Member
Registered: 2007-05-24
Posts: 97
Website

How Cut Of Article?

Hello again

I want cut off my long article that show in front of my blog.
How to do that?

I want add some text like More, etc

So, when my post have long story I can cut off then use will click the more text to read full story.
Just like <! — more — > in WordPress

Please Help Me

Thanks

Offline

#2 2007-05-28 02:05:11

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: How Cut Of Article?

Create an article form with <txp:excerpt /> in it, name it f.i “article-excerpt” and put it on your page with <txp:output_form form="article-excerpt" />”. Then fill in the article’s excerpt field with the text you want to appear on your front page.

Take a closer look at all the txp-tags at Textgarden.

Last edited by uli (2007-05-28 02:09:44)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2007-05-28 02:11:52

jauhari
Member
Registered: 2007-05-24
Posts: 97
Website

Re: How Cut Of Article?

uli wrote:

Create an article form with <txp:excerpt /> in it, name it f.i “article-excerpt” and put it on your page with <txp:output_form form="article-excerpt />”. Then fill in the article’s excerpt field with the text you want to appear on your front page.

Take a closer look at all the txp-tags at Textgarden.

I am sorry I still newbie in TxP so I still didn’t understand about it :(

Offline

#4 2007-05-28 02:18:00

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: How Cut Of Article?

Keep calm and look what you find on the admin interface. There are certain tabs, one of them is called “Forms”, another one “Pages”, a third one “Write”. These are the three I mentioned above. Experiment. Good luck!


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#5 2007-05-28 02:24:05

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: How Cut Of Article?

If the problem is more on the language side: have you seen the native forums on the start page? Jauhari sounds so finnish to me…


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#6 2007-05-28 05:48:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: How Cut Of Article?

In Presentation >Forms> Default form you could have something linke this

<txp:if_article_list>
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<txp:excerpt />
<txt:else />
<txp:body />
</txp:if_article_list>

>Edit typo.. Thanks uli:)

Last edited by colak (2007-06-12 16:01:06)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2007-06-07 13:25:40

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: How Cut Of Article?

jauhari, I hope you solved your problem in the meantime.
colak of course meant <txp:excerpt />, when he wrote <txp:expert />


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB