Using includes for the template.
MrLeN 0
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Using includes for the template.
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Using includes for the template.
First you need to change the output of your script to a variable
Example:
Should be replace with:
The template itself should look like this:
Let me know if you need help with this modification
First you need to change the output of your script to a variable
Example:
echo "This is a test output";
Should be replace with:
$output .= "This is a test output";
The template itself should look like this:
<?php
global $insert;
include("includes/network.php");
$EST_TEMPLATE = <<<TEMPLATE
$output
TEMPLATE;
?>
Let me know if you need help with this modification
I have more than one website. All of my websites share the same basic templates, and pull generic files from my newezone site.
ie (using):
<? include("/home/newezone/public_html/includes/network.php"); ?>
network.php contains the code which display a link to all the sites on my network. They are displayed at the very top and bottom of my site(s).
How can I iclude this code within the StoryTeller template manager? It doesn't sem to work between this code:
<?php
global $insert;
$EST_TEMPLATE = <<<TEMPLATE
TEMPLATE;
?>
If I could include my includes in between this code, I could keep my StoryTeller site totally updated (along with my other sites) each time I upload the include files.
MrLeN