PDA

View Full Version : Web designers - Is there a better way to layout pages?


navjeet
09-03-2007, 02:27 AM
I have just put my site (created with dreamweaver) online and I have copied the code for every page - changing only the table in the center of the page.

Now there are like 13 pages (because I have it open up a new page everytime you view an article or set of images).

Should I be working with frames or embedding some of the information or something? Is it ok to have tons of pages or should I organize the information differently?
For this knowledge i have visited so many web site design company site but i am not satisfied now what i do.

tmmoose
09-03-2007, 07:55 AM
Could be time for some CSS...Like here (http://www.mandarindesign.com/boxes.html#littleboxes)
A link to what you have created might help.

PsychoticDude85
09-03-2007, 11:46 AM
The ultimate way is easily a templating engine, but for something simple what I would probably do is this (requires basic understanding of PHP):

Create two files:
header.tpl
footer.tpl

The names pretty much speak for themselves, you put all of the header markup in header.tpl, and all the footer markup in footer.tpl, then for each page you do this:

<?php
include_once 'header.tpl';
?>

<!-- this is the content for the page, in your case the "middle table" (by-the-by tables for layouts are bad, use CSS) -->

<?php
include_once 'footer.php';
?>

And that way, any edit to header/footer.tpl will be site global, and it ensures a uniform look to your pages.

Cary
09-04-2007, 04:45 PM
Best to avoid opening links in new windows.