Page 1 of 2
Tableless layout and W3C compliant ?
Posted: Wed 12. Jan 2005, 18:07
by cacho
Hi
I'm looking for a CMS and come to see what phpwcms have to offer me.
In the feature list I see a message saying "W3C conform frontend rendering". I don't know what it means but the page didn't validate at w3c validator.
now I wonder if its possible to make stes with phpwcms that use a modern tableless layout and validate the code.
Thanks in advance
Javier
Posted: Wed 12. Jan 2005, 18:10
by frold
as I remember phpwcms generate w3c compliant content in the frontend....
dont you think it is your template taht isn´t compliant?
Posted: Wed 12. Jan 2005, 19:49
by cacho
frold wrote:as I remember phpwcms generate w3c compliant content in the frontend....
dont you think it is your template taht isn´t compliant?
Sorry, but I think you didn't undertand me.
I didn't installed phpwcms yet. I just want to know if I'll get a tableless layout and w3c compliant site with this software BEFORE start to work. I don't want to waste my time.
The site that didn't validate with w3c is the whole phpwcms site. Check yourself inserting
http://www.phpwcms.de/index.php in
http://validator.w3.org/. If you do it you will find a lot of bad used tags (and a older style table layout)...
And your site
http://www.studmed.dk/ is not w3c compliant too. If it was generated with phpwcms, should I think that the this feature is a lie ?
My question is still without answer...
Thanks in advance
J
Posted: Wed 12. Jan 2005, 19:59
by rk
It is possible, but some contentparts don't produce correct code at the moment. But that can
you change in the source

.
Look at this as example
http://validator.w3.org/check?verbose=1 ... cpages.de/
Posted: Wed 12. Jan 2005, 22:37
by frold
And your site
http://www.studmed.dk/ is not w3c compliant too. If it was generated with phpwcms, should I think that the this feature is a lie ?
Powered by phpBB2 Plus 1.52 based on phpBB 2.0.11 | © 2001, 2002 phpBB Group :: FI Theme
and btw:
http://www.phpwcms.de/index.php is based on the old version of phpwcms if you take a look at the changelog in rc4
24-03-2004
After a long break the development goes on....
- Frontend content should renders now 100% W3C valid code. All non valid
things like height attribute for table cells are replaced by the style
attribute height.
Posted: Thu 13. Jan 2005, 19:00
by cacho
frold wrote:And your site
http://www.studmed.dk/ is not w3c compliant too. If it was generated with phpwcms, should I think that the this feature is a lie ?
Powered by phpBB2 Plus 1.52 based on phpBB 2.0.11 | © 2001, 2002 phpBB Group :: FI Theme
and btw:
http://www.phpwcms.de/index.php is based on the old version of phpwcms if you take a look at the changelog in rc4
24-03-2004
After a long break the development goes on....
- Frontend content should renders now 100% W3C valid code. All non valid
things like height attribute for table cells are replaced by the style
attribute height.
Ok.
I've installed the soft and I'm making my first site and have the first question:
How could avoid a body tag like this ?
<body text="#000000" link="#FF9900" vlink="#FF9900" alink="#FF9900" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
I don't know why phpwcms place all this elements in body tag if there a css file... I want to have all those settings in css file.
What should I do ?
Thanks in advance
Javier
Posted: Thu 13. Jan 2005, 19:07
by cyrano
hi,
make a .body class in frontend.css and leave the settings in layout empty, than it should works fine.
Posted: Thu 13. Jan 2005, 19:46
by frold
cyrano wrote:hi,
make a .body class in frontend.css and leave the settings in layout empty, than it should works fine.
yep thats the way
go to
Admin > default css
add:
eg:
body{font: 12px "trebuchet ms", tahoma, Geneva, Arial, Helvetica, sans-serif; color: #000;font-size-adjust: 0.51; margin:0px;}
Go to
Admin > page layout
under
margin choose disable....
Posted: Thu 13. Jan 2005, 20:32
by cacho
It worked, thanks.
Another question:
I've selected <div> layout. How should it be positioned ?
Usually, when somebody did a <div> layout use a layout as container to others. Then, for example, if you want a centered layout of 700px width you could set a margin-left: auto; margin-right:auto; width: 700px; on the container...and the work with the internall <div>.
As far as I see in css that layout is not in css, how should I do what I want in phpwcms.
Also, could somebody give an example of templates use ?
Thanks in advance.
Javier
Posted: Thu 13. Jan 2005, 21:29
by frold
I dont know...
instead of doing it that way you can do as I did...
In rendering: under page layout I have choosen: "table"
then in class eg. left I have added
leftclass
and in the default css I have added:
.leftclass {background-color:#FFFFFF;border-left: 1px solid #000;border-top: 1px solid #000;padding:10px;}
maybe you can use that idea?
Posted: Thu 13. Jan 2005, 21:52
by cacho
frold wrote:I dont know...
instead of doing it that way you can do as I did...
In rendering: under page layout I have choosen: "table"
then in class eg. left I have added
leftclass
and in the default css I have added:
.leftclass {background-color:#FFFFFF;border-left: 1px solid #000;border-top: 1px solid #000;padding:10px;}
maybe you can use that idea?
Thanks for your recommendation, but no, I don't want to use tables for layout. This is bad practice and in every html design forum I go I read articles related to avoid the use of tables in that way..
Evidently, design code is not really separated from php code... I'll try to make a trick to solve the problem, but is a sad new for me...
Javier
PS:
http://www.magicpages.de did it in the way I want...I wonder how they did it ....
Posted: Thu 13. Jan 2005, 23:12
by Paal
cacho wrote:frold wrote:I dont know...
instead of doing it that way you can do as I did...
In rendering: under page layout I have choosen: "table"
then in class eg. left I have added
leftclass
and in the default css I have added:
.leftclass {background-color:#FFFFFF;border-left: 1px solid #000;border-top: 1px solid #000;padding:10px;}
maybe you can use that idea?
Thanks for your recommendation, but no, I don't want to use tables for layout. This is bad practice and in every html design forum I go I read articles related to avoid the use of tables in that way..
Evidently, design code is not really separated from php code... I'll try to make a trick to solve the problem, but is a sad new for me...
Javier
PS:
http://www.magicpages.de did it in the way I want...I wonder how they did it ....
- Create new layout and leave empty all fields
but select this "rendering: custom (from template main block)"
- create new template, select a
custom css file and use custom tableless html code in
main area, eg.:
Code: Select all
<div id="container">
<div id="header"></div>
<div id="left">{NAV_TABLE_COLUMN}</div>
<div id="main">{CONTENT}</div>
<div id="footer"></div>
</div>
and lieve empty header, footer, left, and right area.
This would you?
Paul
Ps.: sorry my bad english

Posted: Fri 14. Jan 2005, 09:06
by cacho
Paal wrote:
- Create new layout and leave empty all fields
but select this "rendering: custom (from template main block)"
- create new template, select a
custom css file and use custom tableless html code in
main area, eg.:
Code: Select all
<div id="container">
<div id="header"></div>
<div id="left">{NAV_TABLE_COLUMN}</div>
<div id="main">{CONTENT}</div>
<div id="footer"></div>
</div>
and lieve empty header, footer, left, and right area.
This would you?
Paul
Ps.: sorry my bad english

Thanks for your reply. Cool solution.... !!!
My english is not the best too...but I understand you, then..don't worry about
Posted: Fri 14. Jan 2005, 10:41
by cacho
Hi
When I place a {CONTENT} or {NAV_TABLE_COLUMN} in my layout its replaced for a lot of non compliant html code (with a lot of tables).
Where could I found a list of those replacement tags and how should I change the inside them ?
Thanks in advance
Javier
Posted: Fri 14. Jan 2005, 10:43
by Paal
cacho wrote:Hi
When I place a {CONTENT} or {NAV_TABLE_COLUMN} in my layout its replaced for a lot of non compliant html code (with a lot of tables).
Where could I found a list of those replacement tags and how should I change the inside them ?
Thanks in advance
Javier
URL?