|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi guys,
Is there any way to have a template or something? I am getting tired of changing one thing in the menu and having to open every page to change it. I don't want to use frames. Is there any other way? like php scripting? Please help. Lex |
|
#2
|
||||
|
||||
|
Yes there is! There are many templating engines around for most server-side languages, such as ASP, PHP and .NET (C# & VB.NET). There are lots of free ones around on the net.
|
|
#3
|
|||
|
|||
|
Dwt
The other option for plain HTML is DynamicWebTemplates (DWT) if you have DreamWeaver or FrontPage 2003, you have the option of using DWT. The DWT Format can be a bit restrictive, but used properly. Also, if you have DW, you can use the library.
|
|
#4
|
|||
|
|||
|
If you have access to use a scripting language, why not use included files? And sniff on CSS-design, this makes redesigning easier. Take a look at http://www.csszengarden.com/ and you will see what I mean.
Last edited by EiSa : October 2nd, 2004 at 04:27 AM. |
|
#5
|
|||
|
|||
|
if you want to know a useful way for php, the include(); function would work quite well to include any file you want every time it loads (so have like
PHP Code:
on every page and you would just have to update page/navigation.php for all of your site's navigation display. |
|
#6
|
|||
|
|||
|
Quote:
The suggestions given so far seem to be a bit overkill and probably not entirely what you're looking for, including your suggestion of PHP. SSI (server-side includes) sounds exactly the solution to your problem. |
|
#7
|
|||
|
|||
|
I co-sign SSI methods. Using languages like PHP would be the easier method. An alternative would be to call a JavaScript function on every page which would print the menu out for you but this isn't the best solution since users can turn off JS.
|
|
#8
|
||||
|
||||
|
JavaScript would be a horrible solution in my opinion... but it is a solution none the less =)
As an added tip, use CSS to keep the style of all your pages the same. If in the future yo uwant to change the colour of your text, its easy enough. As far as templating, I would recommend PHP or SSI... however these are only beneficial if you have access to the server [in the case that they're not currently configured]... Otherwise, perhaps Dreamweaver's solution would work. I haven't used it before, but I assume it will keep the layout of various static pages uniform. |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Advanced Web Development > Annoyed of Changing Every Page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|