Page 1 of 1
Change DOCTYPE
Posted: Wed 22. Feb 2006, 07:55
by dernier_recours
I would like to change the DOCTYPE from
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
to
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
because it seems that HTML 4.01 Transitional corrupts the rendering with IE6.
Which file should I edit?
Thanks!
Posted: Wed 22. Feb 2006, 08:08
by pico
Hi
you will find this in index.php
but if you use XHTML Strict you will not be happy - cause phpWCMS is not generating Strict XHTML-Code.
If you got Problems with
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
there must be something wrong in your Template and/or in Article. If there is everything 'clean', you will get a valid HTML 4.01 Page - maybe some 'Warnings' but it will be rendered by all Browsers.
Posted: Wed 22. Feb 2006, 16:05
by dernier_recours
Thanks for the answer!
I see... The problem is that the page is a valid HTML 4.01 Transitional, but renders strange margins on IE. If I change the doctype to XHTML strict, everything renders perfect, but the site is not valid...
If you have two minutes to take a look:
http://www.dernier-recours.org/
Posted: Wed 22. Feb 2006, 18:10
by pico
Hi
try to change in index.php ~Line 162
from
Code: Select all
$content['page_start'] = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
to
Code: Select all
$content['page_start'] = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">';
Posted: Wed 22. Feb 2006, 18:54
by dernier_recours
Solved. Pico, you're a genious!!!
Thanks!
Posted: Wed 22. Feb 2006, 19:27
by DeXXus
dernier_recours wrote:Solved. Pico, you're a genious!!!
Thanks!
He has *EARNED* his wisdom
... like his signature says:
Diese Software gibt es GESCHENKT, aber NICHT umsonst !
Posted: Wed 22. Feb 2006, 20:02
by flip-flop
Posted: Thu 23. Feb 2006, 18:17
by Kosse
Thx guys, will try that as well, cose all those fancy AJAX moo.fx and others rollover candies only work with XHTML DOC TYPES...
and then phpwcms gets nervous
Cheers
Posted: Mon 27. Feb 2006, 00:33
by gtz
Hello Kosse,
can you confirm this with the Doctype and AJAX?
If you look at the examples at
http://script.aculo.us/, there are full Doctypes according to xhtml, some are just in a shortcut written way and some are even in basic HTML 4.
Gruß,
Götz
Posted: Mon 27. Feb 2006, 12:32
by Kosse
gtz wrote:Hello Kosse,
can you confirm this with the Doctype and AJAX?
If you look at the examples at
http://script.aculo.us/, there are full Doctypes according to xhtml, some are just in a shortcut written way and some are even in basic HTML 4.
Gruß,
Götz
Hi gtz,
as far as I know for moo.fx you need to set to XHTML otherwise it won't ork, as for other AJAX snippets, dunno but as you said, a lot of them require XHTML as DOCTYPE.
Cheers
Posted: Thu 20. Apr 2006, 22:08
by mmm
should that means, the phpwcms doesn´t work correctly on XHTML 1.0? so all templates i have to write in HTML 4.01?
b.r.
manuel
Posted: Fri 21. Apr 2006, 10:22
by Kosse
mmm wrote:should that means, the phpwcms doesn´t work correctly on XHTML 1.0? so all templates i have to write in HTML 4.01?
b.r.
manuel
Hi Manuel, it "works" with XHTML 1.0, means you can see your pages fine but... with some content parts it doesn't VALIDATE (in W3C stricto senso)
As for moo.fx it needs, as pointed two posts ago, that you change the DOC TYPE, OG doesn't recommend it, but yet again it's because it is semanticly incorrect, but not like you won't see your site.
Cheers
Posted: Fri 21. Apr 2006, 13:02
by mmm
ok.
but i think, its better to optimize my site on html 4.01. so i would need the info, where i get access to this meta-tag "description", because my meta-tag description is written in xhtml... in index.php i can´t find the description-meta....
b.r.
manuel
Posted: Fri 21. Apr 2006, 15:18
by Kosse
mmm wrote:ok.
but i think, its better to optimize my site on html 4.01. so i would need the info, where i get access to this meta-tag "description", because my meta-tag description is written in xhtml... in index.php i can´t find the description-meta....
b.r.
manuel
Around line 153...
Code: Select all
$content['page_start'] = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">';
$content['page_start'] .= "<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">";
but you can also change it elsewhere (can't remember where though)
Cheers
where can i change doc type in 1.2.8
Posted: Mon 16. Oct 2006, 19:09
by anthony.abraira
hey folks,
This little fix made css programming easier than the one that is currently set to my CMS 1.2.8 Right now the doc type reads:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
How can I change this in the new version. I think it has been moved.