This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Using includes for the template.


avatar
MrLeN 0
From: -
Using includes for the template.

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

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.
avatar
Administrator
1340
From: Vienna, Austria
Using includes for the template.

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

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.