To template or not to template?

Hey all,
I just converted a site to CSS tableless, and a co-worker suggested to me that a Dreamweaver template might be good to add to it. Now I understand what a Dreamweaver template is, and how it would be beneficial with the old table layouts and font-tags, that way you can make sitewide design changes in the template and not have to change a bunch of font tags and table widths etc hundreds of times. That old-school approach to layout is what I suspect DW templates were created for, no?

But in modern web design, doesn’t the CSS do the same job, keeping the layout data in one place, rendering DW templates obsolete? What are your thoughts? Does anyone here use templates as an addition to CSS layout? Maybe I am missing something, but can someone tell me a reason I should be using them?

I’ve never had any problems like you are describing. The CMS systems I build are completely design neutral. Templates can be created as needed. Its a matter of using the correct CMS for the project and customizing it appropriately. The only time I wouldn’t use one would be if the client never needed to edit it and it was less than 10 pages.

E

Dreamweaver templates synchronize uniform elements. For example if you update the navigation in the template every page on your site is changed when you run the template update, saving you from having to manually change every page on the site. This same effect can be done other ways. Dreamweaver templates are better than flat HTML. Though they are pretty crappy. A hundred page site can take hours to update and verify. Version control issues are a nightmare.

Another approach is to use includes. This can be done with PHP, ASP, or SSI. My preference is PHP. Here is a tutorial. PHP Tutorial - Include File

The 1.5 hour project with Dreamweaver templates will take 15min using includes.

E

I don’t use DW any longer, so I can’t speak with direct knowledge, but if the DW templates are table-driven, then any use of them would be a tremendous exercise in futility. Redo the site the right way, using CSS-driven structure and losing the tables entirely.

Eruna makes some good points (that post came up while I was writing mine :slight_smile: ) but if you’re worried about across-the-board updating of hundreds of pages, you’re better off using a modern CMS such as Wordpress, Joomla, or Expression Engine. Those DW templates are entirely obsolete.

Yes, I would agree with the above: either use a CMS, or at least use PHP Includes. That Dw stuff is absolutely horrid. I’ve had to work with them once, and once was more than enough.

Right. I redid it using CSS layout, and that is what caused me to ask the question. Personally, rather than using a template, especially since I am using simple lists, if I wanted to change the navigation, couldn’t I just use find/replace? That’s how I have always done it. I guess that can come with its own downsides, but it is hard to screw up a find and replace on a simple list. I’ll check out the includes though.

If it does this for the whole site, I guess so, but it’s far less efficient than having the code in one place only and feeding in to all pages. That’s the beauty of includes. It’s similar to an external style sheet, where the one set of styles feeds in to all pages.

Yeah I’m gonna check that option out. Sounds like a better solution.

Black Max, I agree with you. A CMS is the best way to go. I haven’t built a site without one for years. They can actually take less time to build once you get the hang of it.

They can be, depending on what the site is supposed to actually do. Their downside is that, depending on the CMS you’re using, you can be restricted to a limited number of templates and thus get the “generic CMS site” look. And sometimes they constitute “too much solution” for a site. The OP wasn’t specific enough about what his revamped site is to know whether a CMS is the right solution for him.