static page inside s9y
Posted: Mon Jul 05, 2004 10:07 pm
OK, hopefully this will be my last set of questions. I'm attempting to include static html pages within the content area of serendipity. In other words I want the serendipity styles, sidebars, header and footer I defined in layout.php but I want another page to be displayed where the entries are usually displayed. Does that make sense? So, if I put that static page within the s9y folder, all is well. If it is not in the s9y folder I'm informed that I need to install s9y. Any help you can provide would be great.
Here are the links:
http://www.keithstric.com/aboutme.php
http://www.keithstric.com/blog/aboutme.php
The first one doesn't work, the last one does, kinda. I included some of the code from the layout.php file in the 1st link and changed the paths of the includes to point to the appropriate path. Here is the text of the static html/php file:
Here are the links:
http://www.keithstric.com/aboutme.php
http://www.keithstric.com/blog/aboutme.php
The first one doesn't work, the last one does, kinda. I included some of the code from the layout.php file in the 1st link and changed the paths of the includes to point to the appropriate path. Here is the text of the static html/php file:
I also tried copying the files to the www root dir and got the same results. I need to figure out how to get this to work from directories other than the installation dir of s9y so that I can wrap s9y around my photo gallery also in the near future. Thanks for all the help ya'll have provided thus far.<html>
<head>
<title>keithstric.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Powered-By" content="Serendipity v.0.6-pl2" />
<meta NAME="Author" content="Keith Strickland">
<meta NAME="Copyright" content="Keith Strickland 2003">
<meta NAME="DC.Title" content="keithstric.com Dom Blog">
<meta NAME="Revisit-After" content="1 Days">
<link rel="stylesheet" type="text/css" href="/blog/serendipity.css.php" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.keithstric.com/blog/index.ph ... index.rss2" />
<link rel="alternate" type="application/x.atom+xml" title="Atom" href="http://www.keithstric.com/blog/index.ph ... s/atom.xml" />
<style type="text/css">@import "www.keithstric.com/blog/templates/keith ... s";</style>
</head>
<body>
<?php
include_once('blog/serendipity_config.inc.php');
include_once(S9Y_INCLUDE_PATH . 'blog/serendipity_plugin_api.php');
include_once(S9Y_INCLUDE_PATH . 'blog/serendipity_sidebar_items.php');
?>
<div id="serendipity_banner">
<h1><a class="homelink1" href="<?php echo $serendipity['baseURL']; ?>"><?php echo htmlspecialchars($serendipity['blogTitle']) ?></a></h1>
<?php
$sub = isset($serendipity['blogSubTitle']) ? $serendipity['blogSubTitle'] : $serendipity['blogDescription'];
if (strlen($sub)) {
?>
<h2><a class="homelink2" href="<?php echo $serendipity['baseURL']; ?>"><?php echo $sub ?></a></h2>
<?php
}
?>
</div>
<table id="mainpane">
<tr>
<?php
if (!$serendipity['embed'] || $serendipity['embed'] === 'false' || $serendipity['embed'] === false) {
serendipity_plugin_api::generate_plugins('left', 'td');
}else{
serendipity_plugin_api::generate_plugins('left','td');
}
?>
<td id="content" valign="top">
My content here
</td>
<td>
<?php
/* Find any plugins for the RHS */
if (!$serendipity['embed'] || $serendipity['embed'] === 'false' || $serendipity['embed'] === false) {
serendipity_plugin_api::generate_plugins('right', 'td');
}else{
serendipity_plugin_api::generate_plugins('right', 'td');
}
?>
</tr>
</table>
</body>
</html>