Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-08-11 01:59:23

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Custom Fields - Use Textile

The subject might be misleading – stick with me…

I’m making some mods to txp_article.php as described here

Essentially it takes a custom field and turns it into an extra “excerpt”. I have it all working well – I’m just looking for a way apply either “convert line breaks” or “use textile” to this new excerpt. Preferably “use textile”.

Here’s what I have added to my txp_article.php
echo graf(gTxt('Additional Features').br. '<textarea id="addfeat" cols="60" rows="5" cols="55" name="custom_1" tabindex="3">'.htmlspecialchars($custom_1).'</textarea>');

Any help would be much appreciated.

)

Offline

#2 2008-08-11 02:18:23

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

Re: Custom Fields - Use Textile

You could do it in your template with upm_textile (simplest method).

Offline

#3 2008-08-11 03:44:23

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Custom Fields - Use Textile

[slaps forehead]

Duh. I totally forgot all about upm_textile.

Thanks mate.

Offline

Board footer

Powered by FluxBB