GetSimple Support Forum

Full Version: Add TexTile Support.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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

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.