Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-03-24 08:02:48
- pdemaers
- New Member
- Registered: 2006-03-23
- Posts: 3
Formatting excerpt and 'read more ...' link
Hi,
On my home page i want to give a list of some article excerpts with a ‘read more’ link after each of them. So far no problem, i use the following code:
<txp:excerpt />
<txp:permlink>read more..</txp:permlink>
However, i want the ‘read more’ link to immediately follow the last full stop of the excerpt, instead of on a new line. But since the excerpt is automatically surronded by <p> tags, the above code always puts the read more on a new line.
Disired formatting example:
Article title
This is the exerpt formating I want. [more …]
Current formatting example:
Article title
This is the current formatting of the excerpt.
[more …]
Any ideas ? I have read numerous posting on all Textpattern sites, but i have not come accross this so far. Thanks,
Patrick
(Edit: updated code to display properly. :) -Mary)
Last edited by Mary (2006-03-24 09:49:23)
Offline
#2 2006-03-24 10:37:41
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Formatting excerpt and 'read more ...' link
Offline
#3 2006-03-24 11:00:26
- pdemaers
- New Member
- Registered: 2006-03-23
- Posts: 3
Re: Formatting excerpt and 'read more ...' link
Alexandra,
The post you provided exactly solved my problem. Thanks a million !!! I must have missed that post somehouw. I am using the strip-tags plugin around my excerpt and it works like a breeze.
Thanks again,
Patrick
Offline
#4 2006-03-24 11:06:10
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Formatting excerpt and 'read more ...' link
you are welcome :)
Offline