hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : Question about layout content
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

Question about layout content

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-21-2005, 12:47 PM
ericfx ericfx is offline
Newbie
 
Join Date: Oct 2003
Posts: 25

Question about layout content


I am wondering if there is something like CSS for layout content.

With CSS I can add LINK REL="stylesheet" HREF="style.css" to my pages to keep my fonts, link colors, styles, etc, the same on all my pages.

I would like to make it so I can edit like my top header image and menu bar without having to use an iframe for my content pages. If I make changes to the menu, I won't have to change it on 100's of pages. The only way I can think of would be using iframes for my top footer, menu system, and bottom footer.

Sorry if I am confusing you, please let me know any advice.

Thanks,
--eric

Reply With Quote


Sponsored Links
  #2  
Old 01-21-2005, 12:56 PM
the_pm the_pm is offline
Community Liaison 2.0
 
Join Date: May 2004
Location: Akron/Canton, Ohio (USA)
Posts: 11,110
Yes. You're describing includes here. The three most common forms are PHP, ASP and SSI. All you have to do is place the content you want shown on every page into its own document. You can even give that document any file extension of your choice.

Then a small snippet of code goes into your HTML document:

<!-- #include virtual="PATH/FILENAME.EXT" --> for asp

<?php include ("PATH/FILENAME.EXT"); ?> for PHP

I'd keep away from SSI if you have servers that can handle either of the above.

Rename your HTML document from FILENAME.html to FILENAME.php or FILENAME.asp

That's all there is to it. It's frighteningly easy

__________________
Studio1337___̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.__Web Design

Reply With Quote
  #3  
Old 01-21-2005, 01:01 PM
Entronomy Entronomy is offline
Newbie
 
Join Date: Jan 2005
Posts: 20
You could also take it a step futher by setting multiple filenames and so on in a .inc file for example and then echo them in your page.

filenames.inc

$header = "images/topimage.jpg";

include it in your page and then:

<img src="<?php echo $header; ?>" />

Then editing the header variable will change it in all pages including the .inc

Reply With Quote
Sponsored Links
  #4  
Old 01-21-2005, 01:20 PM
ericfx ericfx is offline
Newbie
 
Join Date: Oct 2003
Posts: 25
works great thanks!

is there a way to view my php websites on windows without me having to upload them to my web server and then view them?

Reply With Quote
  #5  
Old 01-21-2005, 04:48 PM
absolethe absolethe is offline
Junior Guru Wannabe
 
Join Date: Nov 2004
Posts: 67
Yeah, set up a test server on your computer. I recommend the tutorial: http://www.webmasterstop.com/tutoria...allation.shtml here, for ease of use.

__________________
- http://www.virtualrevolution.net / Rhy

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Joomla Hosting Study Shows Speed, Uptime Top Selling Points of a Web Host Web Hosting News 2012-11-07 15:06:36
10-14-2012 Roswell, NM - The Hosting Shift Blog 2012-10-24 15:14:40
Website Builder Breezi Launches cPanel Plugin for Web Hosts Web Hosting News 2012-11-12 13:51:20
Website usability – 10 tips for getting it right Blog 2012-04-27 14:11:03
Rackspace Blog Looks at Easy Outsourcing for App Development Blog 2012-03-05 19:07:48


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?