Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-02-24 16:30:21

Sam
Member
From: New York City
Registered: 2004-06-26
Posts: 127
Website

Hard coded PHP files for Presentation - Advice?

I’m looking to bypass the awkward step in the Textpattern process of copying and pasting my default presentation template into the Presentation > Pages textarea.

A simple workaround being to include a file on my server with PHP, like so:

<txp:php>
    include('/relative/path/to/root/directory/pages/default.php');
</txp:php>

Will there likely be any unforseen consequences of doing this? Any performance hit or security issues I should be aware of?

Advice greatly appreciated.

Offline

#2 2009-02-24 19:49:59

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Hard coded PHP files for Presentation - Advice?

Try cnk_versioning
But first try this plugin at test site


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#3 2009-02-25 08:13:43

Sam
Member
From: New York City
Registered: 2004-06-26
Posts: 127
Website

Re: Hard coded PHP files for Presentation - Advice?

Thanks for replying Victor, while the cnk_versioning plugin looks mighty useful I feel it is a bit overkill for this simple site I am working.

Offline

Board footer

Powered by FluxBB