Have been using the book CMS Made Simple 1.6 Beginner's Guide. I'm just at Chapter 4: Have set up a template and stylesheet. Everything is displaying as intended except for the fact that it is repeated. If I look at Page Source, the entire site is there twice, as it is on screen, one under the other. No idea how to remedy this. At this stage, everything I now add is added to each screen view. The actual template and stylesheet is as it should be - a singular lot of code.
Cannot post a link as this is on a thumbdrive.
The book is great. I must have done something incorrectly. Can anyone suggest how this has happened?
Site showing twice on screen
Re: Site showing twice on screen
Paste your page template here...
[Solved] Re: Site showing twice on screen
[Edited} Sorry!!! i've just spotted the problem. I left out <head> !!! I'm so used to just using an existing doctype etc and here I had to type this one from scratch as per the example inthe book. Who would have thought it would cause so much of an issue? Thanks for looking!
<!DOCTYPE html>
<__html>
<title>{title}</title>
{stylesheet}
<meta name="description" content=" " />
</head>
</__body>
<div id="container">
<div id="header">
businessworld
</div>
<img src="uploads/images/{page_image}" width="800" height="100" alt="{title}" />
<div id="top-navi">
{menu number_of_levels="1" template="minimal_menu.tpl"}
</div>
{breadcrumbs}
<div id="content">
<h1>{title}</h1>
{content}
</div>
<div id="sidebar">
{print}
{search}
{menu start_level="2" template="minimal_menu.tpl"}
<hr />
{news summarytemplate="NewsList"}
</div>
<div id="footer">
<p>{menu template="footer_menu"}</p>
2011 Business World
</div>
</div>
<__body>
</__html>
<!DOCTYPE html>
<__html>
<title>{title}</title>
{stylesheet}
<meta name="description" content=" " />
</head>
</__body>
<div id="container">
<div id="header">
businessworld
</div>
<img src="uploads/images/{page_image}" width="800" height="100" alt="{title}" />
<div id="top-navi">
{menu number_of_levels="1" template="minimal_menu.tpl"}
</div>
{breadcrumbs}
<div id="content">
<h1>{title}</h1>
{content}
</div>
<div id="sidebar">
{print}
{search}
{menu start_level="2" template="minimal_menu.tpl"}
<hr />
{news summarytemplate="NewsList"}
</div>
<div id="footer">
<p>{menu template="footer_menu"}</p>
2011 Business World
</div>
</div>
<__body>
</__html>