Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-23-2002, 11:38 AM   #1
Member (9 bit)
 
Join Date: Dec 2001
Location: US
Posts: 468
Send a message via AIM to wilbasket23 Send a message via Yahoo to wilbasket23
Smile Questions about creating a template web page?

hello, i have some question about creting a template for my web sites. i currently trying to make a web sites which include a lot of pages. i find that it is very trouble to create the same layout of a web page over and over many times isn't there a way that i can create a default template web page, so everytime when i create a new web page i can just use that template web page as the layout, do i dont' need to copy and paste the code over and over again.
wilbasket23 is offline   Reply With Quote
Old 08-23-2002, 03:10 PM   #2
Member (10 bit)
 
Join Date: Apr 2001
Location: Michigan
Posts: 850
Send a message via ICQ to HackinCowboy
Most developers will use Include files to store code that is going to be used on most, if not all, pages. For instance, you can have one file called Header.inc which would contain everything on the "top" part of your page. You could also have one called Menu.inc which would contain the code for you menu. Then you could have another file called Footer.inc which would have all the code for the "bottom" part of your page. Then whenever you're going to make a new page, all you have to do is put a simple INCLUDE statement on your page and the code will be 'imported' from your .inc file. Does this help?
HackinCowboy is offline   Reply With Quote
Old 08-23-2002, 05:00 PM   #3
Member (9 bit)
 
Join Date: Dec 2001
Location: US
Posts: 468
Send a message via AIM to wilbasket23 Send a message via Yahoo to wilbasket23
Smile Question again

ok, what is .inc file. so whenever i want the part of the page to be display on every single web pages. i have to save that part in
to a .inc file. does that part have to be in html tag format like
//
//
//
//
//
//
//






in the .inc file or just type in the approiate part of the tag into the .inc file and then using a include statment.
by any chance can u give me an example, it is not very clear what you saying. thank you



Report this
wilbasket23 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:22 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2