Tableless layout and W3C compliant ?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
cacho
Posts: 12
Joined: Wed 12. Jan 2005, 17:56

Tableless layout and W3C compliant ?

Post 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
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

as I remember phpwcms generate w3c compliant content in the frontend....

dont you think it is your template taht isn´t compliant?
http://www.studmed.dk Portal for doctors and medical students in Denmark
cacho
Posts: 12
Joined: Wed 12. Jan 2005, 17:56

Post 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
rk
Posts: 162
Joined: Sat 24. Apr 2004, 23:48
Location: Hannover, Germany
Contact:

Post 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/
Ralf
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post 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.
http://www.studmed.dk Portal for doctors and medical students in Denmark
cacho
Posts: 12
Joined: Wed 12. Jan 2005, 17:56

Post 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
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi,

make a .body class in frontend.css and leave the settings in layout empty, than it should works fine.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post 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....
http://www.studmed.dk Portal for doctors and medical students in Denmark
cacho
Posts: 12
Joined: Wed 12. Jan 2005, 17:56

Post 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
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post 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?
http://www.studmed.dk Portal for doctors and medical students in Denmark
cacho
Posts: 12
Joined: Wed 12. Jan 2005, 17:56

Post 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 ....
Paal
Posts: 204
Joined: Wed 6. Oct 2004, 19:54
Location: Budapest, Hungary
Contact:

Post 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 :?
cacho
Posts: 12
Joined: Wed 12. Jan 2005, 17:56

Post 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
cacho
Posts: 12
Joined: Wed 12. Jan 2005, 17:56

Post 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
Paal
Posts: 204
Joined: Wed 6. Oct 2004, 19:54
Location: Budapest, Hungary
Contact:

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