Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add TexTile Support.
#1
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.
My Github Repos: Github
Website: DigiMute
Reply




Users browsing this thread: 1 Guest(s)