Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-18 08:50:56

kimiko
Member
Registered: 2005-12-01
Posts: 35
Website

Remove <p> from <txp:excerpt />

Hello,

are there any ways of removing/disabling the (p) that are automaticly added around the (txp:excerpt /). I prefer to make the paragraphs myself, or even better: turn off textile from the excerpt.

Thanks in advance. ^^

Last edited by kimiko (2006-03-18 08:51:25)

Offline

#2 2006-03-18 09:22:27

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: Remove <p> from <txp:excerpt />

First of all for semantic reasons it is not advisable to remove the p tags, really. Texts should be placed in p tags.

If you still like to, you can use a plugin. I am not sure but think, this one:
http://www.upm-plugins.com/upm-textile-toggle

is it.

Offline

#3 2006-03-18 09:35:16

kimiko
Member
Registered: 2005-12-01
Posts: 35
Website

Re: Remove <p> from <txp:excerpt />

alexandra wrote:

First of all for semantic reasons it is not advisable to remove the p tags, really. Texts should be placed in p tags.

Thanks Alexandra, this plugin is just what I needed. ^^

The reason I wanted this plugin is because I need to mix in a few tags before the excerpt can start. I wrap a p tag around the excerpt myself to have more control over the output.

Offline

#4 2006-03-18 09:37:34

kimiko
Member
Registered: 2005-12-01
Posts: 35
Website

Re: Remove <p> from <txp:excerpt />

Silly me.. there’s an option for that when you write the post.. the plugin will save me the extra few clicks though. ^^

Offline

#5 2006-03-18 11:38:29

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Remove <p> from <txp:excerpt />

Well if I’m not mistaken kimiko, and if you don’t want to use a plug-in or mess with the advanced options on the editing screen, you could just leave a blank space before the excerpt which would switch Textile off.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2006-03-30 10:57:28

roobarb!
Member
From: Salford, UK
Registered: 2006-02-10
Posts: 10
Website

Re: Remove <p> from <txp:excerpt />

thebombsite wrote:

…just leave a blank space before the excerpt which would switch Textile off.

thebombsite, you have just made my day. :o)

Cheers,

Andy.

Offline

#7 2006-03-30 11:11:33

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Remove <p> from <txp:excerpt />

Or you could read the FAQ.


Alex

Offline

Board footer

Powered by FluxBB