2009-09-02, 20:53:38
Hi,
Here's how to add TexTile support on a template side, will not affect the backend.
Disable TinyMce editor on the settings page.
o - create a directory in your template directory and add the classtextile.php file from the textile download
o - include this file in the header of your template.
o - Create a functions.php in your template directory and insert the following
This will automatically be included version 1.6 onwards. (if using a previous version just include the functions.php file)
o - Then in your template call this function instead of
That should do it....
MIke.
Here's how to add TexTile support on a template side, will not affect the backend.
Disable TinyMce editor on the settings page.
o - create a directory in your template directory and add the classtextile.php file from the textile download
o - include this file in the header of your template.
o - Create a functions.php in your template directory and insert the following
Code:
function get_page_content_tt() {
global $content;
$textile = new Textile();
echo $textile->TextileThis(stripslashes($content));
}
This will automatically be included version 1.6 onwards. (if using a previous version just include the functions.php file)
o - Then in your template call this function instead of
Code:
get_page_content();
That should do it....
MIke.