Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-29 22:12:44

mini__C
New Member
Registered: 2007-04-13
Posts: 3

How to limit the number of lines of text in an article at home?

Hi
I sometimes have articles that are so long that they take so much space on the screen that other articles goes unnoticed so therefore I was wondering if there is a plugin or any modification that can limit the number of lines in an article that the home page shows…….if you still don’t know what I’m talking about…..take digg for example…you have a list of articles and if the visitor would like to know more the would click on the link to read more….I want that functionality!!

Any help would be great thanks!
Chris

Offline

#2 2007-04-29 22:18:13

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: How to limit the number of lines of text in an article at home?

That functionality already exists. Use the ‘excerpt’ field for such long articles ;)

See Textbook for an explanation on how to modify your template / article_form to make use of this (example 1).

… or you could use a plugin (textpattern.org provides a nice overview) to automatically create excerpts: rss_auto_excerpt

Last edited by ruud (2007-04-29 22:24:42)

Offline

#3 2007-04-29 22:33:27

mini__C
New Member
Registered: 2007-04-13
Posts: 3

Re: How to limit the number of lines of text in an article at home?

I’ve added the example code into the defaults template…and added some text into the excerpt but it doesnt’ seem to be working……

Offline

#4 2007-04-29 23:05:35

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: How to limit the number of lines of text in an article at home?

An URL for the page that displays the problem and a description of what exactly doesn’t seem to be working would make it easier for us to help troubleshoot this problem.

Offline

#5 2007-04-30 20:15:00

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

Re: How to limit the number of lines of text in an article at home?

FAQ

Offline

Board footer

Powered by FluxBB