Two head tags

post everything related to phpwcms templates here
Post Reply
kpimichael
Posts: 44
Joined: Mon 29. Dec 2003, 03:29

Two head tags

Post by kpimichael »

noobie alert. I just installed and was having a blast. Set up a bunch of pages and templates. Then i viewed the source for a page. I saw duplicate tags in my html. One set i know i put in the template...but the other is wrapped around what is in my template. Am i not supposed to put head, document type tags, etc in a template? Where is the other coming from? I only need one, but i need to put it in the right place. :) I would appreciate someone educating me as to why i am getting this and what i did to do it :)

Here is an example:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!--
	phpwcms | free open source content management system
	created by Oliver Georgi (oliver at phpwcms dot de) and licensed under GNU/GPL.
	phpwcms is copyright 2003-2010 of Oliver Georgi. Extensions are copyright of
	their respective owners. Visit project page for details: http://www.phpwcms.org/
// -->
  <title>Law Office of Nathan Michael James Workman, PLLC | Home</title>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="content-style-type" content="text/css" />
  <style type="text/css">
  <!-- 
  <style type="text/css">
  <!-- 
  // -->
  </style>

  <script src="template/inc_js/frontend.js" type="text/javascript"></script>

</head>
<body>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Law Office of Nathan Michael James Workman, PLLC</title>
<style type="text/css">
body,td,th {


User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Two head tags

Post by juergen »

Hey ;)

You should easily have a closer look to the template section, where HEAD has it's own - all above- Entry Input.

If you take these things into the main section all will be outside doctype rules. Doctype itself is defined by the cms, have a look into the config.

Let's see if I carried the thing :)

Ok, just found out that this very important thing seems to be missing in the docu page in english :? Will give it a closer look and translate the missing part.

To be there (in 1-2 days: http://www.phpwcms-docu.de/templating.phtml )
kpimichael
Posts: 44
Joined: Mon 29. Dec 2003, 03:29

Re: Two head tags

Post by kpimichael »

Thank you for responding... I was moving too fast i guess. You are right of course. Thank you
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Two head tags

Post by juergen »

Nevertheless, I overtook too much ... just another 24 hours :D
Post Reply