Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-08-26 10:00:12
- coelhoapm
- New Member
- Registered: 2005-08-26
- Posts: 3
TextPattern - Excerpt Plugin
Hello all!
Does anyone know a plugin (that really works) that when you write a new article at TextPattern it only publish at the frontpage some few text or the article with the “READ MORE” link and then open the entire article??
Regards,
Antonio
Offline
#2 2005-08-26 12:21:56
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: TextPattern - Excerpt Plugin
You don’t need a plugin for that. Search the How do I… forum, there are dozens of examples how to do it.
Offline
Re: TextPattern - Excerpt Plugin
@coelhoapm; you are searching for if_excerpt
Samui? Samui! (about the life as farang in thailand)
David’s Neighbour
Offline
Re: TextPattern - Excerpt Plugin
This works for me. Create a “Read_More” form something like this…
<code>
<h2><txp:title /></h2>
<p><txp:posted /> | <txp:if_article_list><txp:permlink>Permalink</txp:permlink> | <txp:comments_invite /></txp:if_article_list>
</p>
<txp:if_article_list>
<p><txp:excerpt /></p>
<p><txp:permlink>Read more …</txp:permlink></p>
</txp:if_article_list>
<txp:if_individual_article>
<txp:body />
</txp:if_individual_article>
</code>
Then when you want an article to use this form, click the Advanced Options link on the left of the Articles page. Select the Read_More form (or whatever you call it) from the Override form drop down. Create your article and it’s excerpt and you’re good to go!
Offline
#5 2005-08-27 16:25:37
- Niconemo
- Member
- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: TextPattern - Excerpt Plugin
And if you don’t want to use the excerpt field, there is also the sab_substr plugin that that can cut any text (including the txp:body tag of an article) after the number of characters you need :
<code>
<h3><txp:title /></h3>
<txp:sab_substr limit=“250” trail=”(…)”>
<txp:body />
</txp:sab_substr>
<p><txp:permlink>Read more…</txp:permlink></p>
</code>
Nico
Offline
Pages: 1