Dynamic Plugins with P-CMS admin
Hi
I have a P-CMS admin page created from the admin template, When I try to add a dynamic plugin I get a syntax error thrown in the Framwewrok code added.
Now I have also tried a dynamic plugin with a plain php page and no issues weird thing is the code is identiacl and no errors.
Is there something in the P.CMS admin that is incompatible?
Please note this is a dynamic polugin not a Static one which works fine.
Thanks
Mike
For this example the included page is a blank PHP page.
(Syntax error around Line 8)
<?php
require_once( "../webassist/framework/library.php" );
require_once( "../webassist/framework/framework.php" );
?>
<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" );
if(true){
// WebAssist Framework Builder Dynamic Plug-in: $WA_gallery_test_2_1298852612389
switch(isset(action)?action:""){
case "edit":
$WA_gallery_test_2_1298852612389 = new WA_Include("gallery_test_2.php");
break;
default:
break;
}
if(isset($WA_gallery_test_2_1298852612389)){
require($WA_gallery_test_2_1298852612389->BaseName);
$WA_gallery_test_2_1298852612389->Initialize(true);
}
// End: WebAssist Framework Builder Dynamic Plug-in: $WA_gallery_test_2_1298852612389
}
require_once( "../WA_Globals/WA_Globals.php" ); ?>
<?php require_once('../Connections/PowerCMSConnection.php'); ?>
<?php require_once( "../WA_CMS/WA_CMS.php" ); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/admin.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title><?php echo($WAGLOBAL_Site_Name); ?> - [page]</title>
<!-- InstanceEndEditable -->
<style type="text/css" media="all">
@import url('css/admin.css');
</style>
<!--[if IE]>
<style type="text/css">
/* The proprietary zoom property gives IE the hasLayout property which addresses several bugs. */
#outerWrapper #contentWrapper #content {
zoom: 1;
}
</style>
<![endif]-->
<!-- InstanceBeginEditable name="head" -->
<?php echo((isset($WA_gallery_test_2_1298852612389))?$WA_gallery_test_2_1298852612389->Head:"") ?>
<!-- InstanceEndEditable -->
<script type="text/javascript" src="../js/mootools-core.js"></script>
<script type="text/javascript" src="../js/mootools-more.js"></script>
<script type="text/javascript" src="../CSSMenuWriter/cssmw/menu.js"></script>
<style type="text/css" media="all">
<!--
@import url("CSSMenuWriter/cssmw/menu.css");
-->
</style>
<!-- InstanceBeginEditable name="menu_ie" -->
<!--[if lte IE 6]>
<style type="text/css" media="all">
@import url("CSSMenuWriter/cssmw/menu_ie.css");
</style>
<style type="text/css" media="all">
@import url("css/admin_ie.css");
</style>
<style type="text/css" media="all">
img, div, ul, li, span, a {
behavior: url("CSSMenuWriter/cssmw_images/iepngfix.htc");
}
</style>
<![endif]-->
<!-- InstanceEndEditable -->
</head>
<body>
<div id="outerWrapper">
<div id="header">
<div class="left">
<a href="index.php"><img src="../images/logo.png" alt="Content Management" /></a>
</div>
<div class="right">
<a href="contents_search.php">Advanced Search</a> | <a href="users_login.php?logout=1">Log Out</a></div>
</div>
<div id="topNavigation">
<div id="searchBox">
<form action="contents_results.php" method="get" id="WADASearchForm">
<p>
<input type="text" name="S_Keyword" id="S_Keyword" value="" />
<input type="submit" name="Search" id="Search" value="Search" alt="Search" class="btn" />
</p>
</form>
</div>
<?php require_once("../CSSMenuWriter/cssmw/menu.php"); ?>
</div>
<div id="contentWrapper"><!-- InstanceBeginEditable name="LeftColumn" -->
<div id="leftColumn1">
<?php require_once("pages.php"); ?>
</div>
<!-- InstanceEndEditable -->
<div id="content">
<!-- InstanceBeginEditable name="MainContent" -->
<?php echo((isset($WA_gallery_test_2_1298852612389))?$WA_gallery_test_2_1298852612389->Body:"") ?><!-- InstanceEndEditable -->
</div>
</div>
<div id="footer">Powered by <a href="http://www.webassist.com/solutions" title="PHP scripts" target="_blank">WebAssist</a>
</div>
</div>
</body>
<!-- InstanceEnd --></html>