Making multiple pages from template

I made a super easy page template that I’d like to use througout the site, but was wondering whenever a an easy strategy to copy the format to mulitple web pages, other than cutting open it, then protecting it as, by way of example, page1. html, page2. html page etc.

I used to be using Coffecup HTML PAGE editor, if which helps.

My page basicly is known for a menu along your left side, a title/graphic in the top, and in the biggest market of the page is a only thing that may change from page to page. Is this the simplest way to go about carrying out a layout like the following

Hi

Should you have a server-side lisenced users language (like PHP and also Perl), then it is rather easy.

If not, then I think the only way is that will copy/paste or save-as. Remorseful.

I’m undecided what you imply. Do you mean if I know how to program/write PHP/Perl pieces of software, or if I manage to use them where We have my hosting (the first, I have no idea the way to write scripts, cost-free I have)

" That second" — How much does your host grant you access to

For any little briefing about how exactly you could try doing it, consider a tutorial about my site: http: //ekstreme. com/webmaster/templating. php. Certainly it’s " not the best" tool for doing it, nonetheless it is quite straightforward. And it can be implemented using every server side terms.

So: which server side language do you have

Scripting Gear (Perl, Python, PHP4)Server Side Comprises of (SSI)Personal CGI-BIN Htaccess MySQL Data source (I just copied/pasted this in the site www. 8-95. com.

Excellent. The URL POST gave you above is made for SSI. Here it really is again in theory; please look in the site for entire details.

Take your template page and find which bits usually are common and which might be not.

Take out the HTML which is common and put it into separate files.

Now for each page, use the SSI consists of to insert the normal HTML and simply contain the page-specific contents in this page.

Expect this helps. Please post back if you want more help.

Thanks I’ll check over the actual URL info you set it up and see what I’ll manage

Right this moment, I’m really mixed up. I’ll keep reading through till it starts to create sense. I sorts of grasp the strategy, but not sure the way to go about cuddled things out

If the web host allows PHP, it makes things pretty simple. Let’s say your own navigation, header, & footer is a similar for all ones pages — as well as all you should certainly change is the actual content/body.

An example of a web page would be, let’s say " template. php". It’s coding would appear to be this (red is a PHP, blue can be your editable/changing stuff):

——–

< html>
< head>
< title> _PAGETITLE-BROWSER_< /title>
< php comprises of (" HEADER. html" ); >
< php comprises of (" MENU. html" ); >

<! — START HTML CONTENT –>

< h1> _PAGETITLE_< /h1>

< p align=" center" > _BODY_OR_CONTENT_HERE_< /p>

<! — CONCLUDE CONTENT –>
< php comprises of (" FOOTER. html" ); >

——————————————————-

Now in the event you look, the template calls on THREE other files (in red) implementing PHP – the actual HEADER. html for any top part in the page, the MENUS. html for direction-finding, then the FOOTER. html for any bottom half in the page. Each of these files’ coding appear to be this:

HEADER. html page ———————–

< website rel=" stylesheet" type=" text/css" href=" styles. css" media=" all" />
< meta name=" robots" content=" noindex, nofollow, noarchive, noimageindex, noimageclick" />
< meta name=" googlebot" content=" noindex, nofollow, noarchive" />
< meta name=" title" content=" " />
< meta http-equiv=" Content-Language" content=" english" />
< meta http-equiv=" vw96. item type" content=" homepage" />
< meta http-equiv=" Distribution" content=" global" />
< meta name=" rating" content=" general" />
< /head>

< body bgcolor=" #000099" background=" images/blue-tile. gif" leftmargin=" 0" topmargin=" 0" marginwidth=" 0" marginheight=" 0" text=" #a9a9a9" link=" #ffffff" vlink=" #6699ff" alink=" #ffff66" >

Any top page coding here for example images, banner ads… blah blah.

MENU. html page ———————

< p align=" center" >
… blah blah, coding with regard to navigation bar is actually entered here… (So once you change a website, you don’t must change it upon all 50 of your respective pages – just on this one file. )
< /p>

FOOTER. html page ——————

… blah blah… coding with regard to footer here, for example copyright, images or banner ads at the bottom of the web site or whatever I want…
< /body>
< /html>

————————–

Now you can use the " template. php" page & edit/change only the contents and not having to rewrite all in the other coding, then " save as" whatever you want to call that page – for example " about-us. php"…

Help make sense

Nonetheless, you can create a peek at the actual sites below to view how php previously worked for them, with all the same concept because above. There are various ways to begin this; what I present above is one of these.

Certainly, when you look at the source code for any sample sites below, it won’t exhibit PHP — it’ll look in the same way if you had typed in the template, header, footer, & direction-finding HTML all about one page similar to you normally might, which is mind-numbing & takes added time.: classic: Who would like to work that difficult when there’s some sort of fast/easy way!

world wide web. jandjwebservices. com
http: //famil

This entry was posted in Web Design and tagged , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *