Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-12 13:34:45

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

Change default for excerpts/textile

Where in PHP can i change the current default “Use textile for excerpts” to “Do not use textile for excerpts”?

Offline

#2 2005-12-12 14:21:58

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

Re: Change default for excerpts/textile

I’ve got a plugin that turns it off, if that’s what you’re after.

Offline

#3 2005-12-12 14:27:06

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

Re: Change default for excerpts/textile

Hi mary,
isn´t there another possibility to change it in the PHP code instead of using a plugin?

Offline

#4 2005-12-12 15:05:34

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

Re: Change default for excerpts/textile

You mean modifying the Textpattern admin files themselves? I don’t know why you’d want to, but you certainly could. The file in question is txp_article.php.

Offline

#5 2005-12-12 15:14:00

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

Re: Change default for excerpts/textile

> mary wrote:

> I don’t know why you’d want to, …

The question came up on the german forum and concerned the p tags which are automatically appended to the excerpts. It would be easier to set p tags in the excerpts-form than switching textile off for every excerpt. Did i make myself understandable?

Offline

#6 2005-12-12 15:25:40

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

Re: Change default for excerpts/textile

So, what is Textile wanted for, for just the entities swapping?

Offline

#7 2005-12-12 15:43:05

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

Re: Change default for excerpts/textile

Thx mary for the hint ( txp_article.php). I went through the file but as i am no programmer i have no clue what to change so the default setting -> “Use Textile for excerpts” can be changed to -> “Do not use Textile for excerpts”.

(I think the default setting in general should be changed in TXP to: Do not use Textile for excerpts. The question “How to get rid of the p tags on excerpts” comes up something like every 4 weeks as they make no sense – at least not to me and some others.)

Offline

#8 2005-12-12 16:04:04

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

Re: Change default for excerpts/textile

Okay now I’m confused. That’s what my plugin does. ?

Offline

#9 2005-12-12 16:18:15

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

Re: Change default for excerpts/textile

mary, sorry, sorry, sorry … me apologize for the confusion i caused. i just installed your plugin and viola :) did get the trick which i did not by just reading the plugin-thread. wow great, thx again so much for your work!!!

Offline

Board footer

Powered by FluxBB