So that's one look - but now how about changing it so that the quick link boxes appear in a column on the left, with the main story taking up the rest of the page? With FastTemplate, altering the layout is a snap - it merely involves editing the "main.tpl" and "list.tpl" templates. In this case, I've simply set up a new table structure for the main page to accommodate the new layout. And when I run the PHP script (without changing a single line of code), here's what I get: ![]() Why stop there? Let's do away with the link boxes altogether, and have the links appear in neat rows at the bottom… In this case, I've altered three of the templates to remove the tables and list constructs, so that I'm left with a very simple and elegant layout. ![]() As you can see, FastTemplate makes it possible to separate the user interface from the program logic, thereby allowing designers with little or no programming knowledge to alter Web pages quickly and easily. Further - with its ability to nest and repeat chunks of HTML code, it can speed up development time significantly, and also reduce the effort involved in maintaining and modifying a Web application. That's about it from me. In case you're looking for more information, you should consider visiting the following links: The FastTemplate home page: http://www.thewebmasters.net/ PHPBuilder's FastTemplate tutorial: http://www.phpbuilder.com/columns/sascha19990316.php3 The original (Perl) FastTemplate module: http://www.sober.com/ Till next time...stay healthy!
blog comments powered by Disqus |