Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-12-12 13:40:08

toul
Member
Registered: 2006-12-12
Posts: 18

view just two or 3 rows of a posting

hi…can i show just the first two or three rows of a new article? and place a button with “read on”?
thank you!

Offline

#2 2006-12-12 13:54:19

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: view just two or 3 rows of a posting

FAQ

Offline

#3 2006-12-13 11:15:52

toul
Member
Registered: 2006-12-12
Posts: 18

Re: view just two or 3 rows of a posting

thank you!!!!

is there a way to automate exzerpt’s or have i to type them manually in the article textfield section?

i’m a absolute newbie! and it’s seems to me very complex doing the fist steps with textpattern. i have to read a lot the online tutorials!

Offline

#4 2006-12-13 11:18:42

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: view just two or 3 rows of a posting

You can do whichever you like. :) There are a couple excerpt-related plugins available.

Offline

#5 2006-12-15 14:48:45

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: view just two or 3 rows of a posting

Mary wrote:

FAQ

this tutorial puts “read on” into new line. but how to display it right at the end of excerpt? like this:

Fernando Alonso got behind the wheel of a McLaren for the first time during testing in Jerez on Friday. Although Alonso’s contract with Renault is only due to expire on December 31, the French team decided to allow the 2006 world champion an early taste of his…read on

Offline

#6 2006-12-15 14:57:41

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

Re: view just two or 3 rows of a posting

<txp:if_article_list>
	<txp:excerpt />...<txp:permlink>read on</txp:permlink>
<txp:else />
	<txp:body />
</txp:if_article_list>

the code goes in the default form. Also read how do i show only an excerpt in article lists

Last edited by colak (2006-12-15 14:59:12)


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 2006-12-15 15:23:03

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: view just two or 3 rows of a posting

Gallex wrote:

this tutorial puts “read on” into new line. but how to display it right at the end of excerpt?

Something like this? (It’s not a perfect solution because you have to type txp tags in the articles.)

Or else you can turn off Textile for the excerpt, so it won’t be wrapped in <p> tags.

Offline

#8 2006-12-17 12:45:57

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: view just two or 3 rows of a posting

Els wrote:

Something like this? (It’s not a perfect solution because you have to type txp tags in the articles.)

yes, but seems that this is the only way to get what I want. colak solution still displays “read on” in new line

Or else you can turn off Textile for the excerpt, so it won’t be wrapped in <p> tags.

turn off, how?

I installed rss_auto_excerpt plugin for testing, but I can’t find example how to use it…

Last edited by Gallex (2006-12-17 14:01:47)

Offline

#9 2006-12-17 16:45:56

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: view just two or 3 rows of a posting

Gallex wrote:

turn off, how?

You can either on a per article basis (in the ‘Write’ screen, under Advanced options) change ‘Excerpt markup’ from ‘use Textile’ to one of the two other options, or use Mary’s plugin upm_textile_toggle with which you can turn off Textile for all excerpts.

I installed rss_auto_excerpt plugin for testing, but I can’t find example how to use it…

I’m sorry, I don’t know this plugin. You’d better ask in the plugin thread.

Offline

Board footer

Powered by FluxBB