Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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.
Sam Brown
sambrown.me | welovetxp.com
Offline
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
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.
Sam Brown
sambrown.me | welovetxp.com
Offline