Site showing twice on screen

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Site showing twice on screen

Post by jasnick »

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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Site showing twice on screen

Post by Dr.CSS »

Paste your page template here...
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

[Solved] Re: Site showing twice on screen

Post by jasnick »

[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>
Post Reply

Return to “CMSMS Core”