Forums
This topic is locked
PHP head code in templates
Posted 09 Mar 2005 23:07:05
1
has voted
09 Mar 2005 23:07:05 Shell Richer posted:
Hi, has anyone dealt with nested templates and php includes? My page properties were not locking so Macromedia tech support told me to delete certain code in my head but my php was in there so it gets deleted. I need to find out where to put my php includes in the head so they allow the template page properties to lock. Below is the code from one of my nested templates. There is extra code in there but I'm not sure what to delete or move. Thanks, Shell<pre id=code><font face=courier size=2 id=code> <?php
$path = "e:/its/wwwroot/";
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/its_template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Visual Arts Template</title>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="head" -->
<?php $file = "/depts/visarts/grfx/tbar_visualarts.swf"; ?>
<?php include ($path."depts/visarts/menu/head_index.inc"

<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable --><!-- TemplateParam name="iftest" type="boolean" value="true" --><!-- TemplateParam name="ifmenu2" type="boolean" value="true" --><!-- InstanceEndEditable -->
<link href="/css/its_styles.css" rel="stylesheet" type="text/css">
</head> </font id=code></pre id=code>