Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-03 13:46:06

teowe139
New Member
Registered: 2006-08-03
Posts: 2

max chars for example in title

If i am to publish an article but i do not want the entire title to show. For example I only want the first 10 chars of the title to be shown. Because if the entire title is printed out it occupies several rows of a css container. So is there a way to do this with textpattern, or any otherway for that matter if someone knows :)

Offline

#2 2006-08-03 14:18:54

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

Re: max chars for example in title

What would be the point in writing such a long title then? You can limit the the url title length under Admin settings, but if you want to limit the output, you could probably adapt a javascript url-abbreviator script.

Offline

#3 2006-08-03 15:17:15

teowe139
New Member
Registered: 2006-08-03
Posts: 2

Re: max chars for example in title

Just thougt of the idea, ofcourse i can just shorten the title manually and add … at the end when it is to long for the container. Just wanted to know if it was possible any other way.

Offline

#4 2006-08-03 17:43:59

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

Re: max chars for example in title

There is a plugin that can do this: sab_substr. Don’t know if it works with the current version though.

Offline

#5 2006-08-04 00:53:39

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

Re: max chars for example in title

Don’t know if it works with the current version though.

It should.

Offline

Board footer

Powered by FluxBB