|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Webmaster Resources Discussion Forum Sitemaps and robots and logfiles -- Oh My! If you have any questions, comments, concerns and/or ideas about the tools currently available to webmasters to make their lives... 'easier'. Here's where you need to be. Know of a good tool? Post it here. Got something funny in your logfiles? Maybe we can help. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
ok, i want to create a website that i will be adding to over time. i want to be able to make changes(add a link) in my sidebar and have it reflected in all the pages in my site without changing it on every page.
how can this be done? i'm sure i need to learn some new stuff, but i need it to work like this.
__________________
-Kinembe |
|
||||
|
There are a few different ways to do it, but they all depend on what your server can handle, and how you will be developing your site. For example, if you intend to build a static html site, the best way would be to use Server Site Includes, assuming your site is on an Apache server. You would, however, need to check with your hosting provider to make sure SSI is supported.
Otherwise, if you are going to be using PHP to make a dynamic site, you can use PHP includes to include the contents of another file in the page.
__________________
The best way to learn anything, is to question everything. WigeDev - Freelance web and software development |
|
|||
|
just a static site, but plan on adding pages over time. i use lunarpages hosting and yes it is an apache and supports ssi.
any recommended reading or tutorials? or advice, i have a basic knowledge of html, but not much more.
__________________
-Kinembe |
|
||||
|
This is the comprehensive official starters guide to using SSI on an Apache server: Apache Tutorial: Introduction to Server Side Includes - Apache HTTP Server
Basically, the two things you need to know are what SSI does, which in your case will consist of embedding the contents of an external text file into the document being served to the client, and how to do it. To create an SSI page, you need to use .shtml as the extension, instead of .html. That tells the server to look for SSI components. You would then create a text file that has the contents you want to embed in your various pages. On the page you want to embed the content into, you would add: <!--#include virtual="/path/to/text/file.html" --> where you want the file contents to be placed. That string will then be replaced with the contents of the file. And thats pretty much it.
__________________
The best way to learn anything, is to question everything. WigeDev - Freelance web and software development |
|
|||
|
Why don't you a create a page where you can do all the modifications in your site. Usually the page that contains all the functions of your site is function.php or configuration.php then in return you will just call this function to all of your pages so that it will appear in every pages of your site.
Last edited by myfreelance; 09-22-2009 at 01:40 PM. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Where did the left sidebar go? | bj | WebProWorld: Guidelines/Announcements/Suggestions | 7 | 08-07-2007 12:34 AM |
| Javascript to create non-sidebar bookmark in Firefox? | littlegiant | Graphics & Design Discussion Forum | 0 | 09-29-2005 04:08 PM |
| New Watson Sidebar for MSN Search | WPW_Feedbot | Search Engine Optimization Forum | 0 | 09-23-2005 10:30 AM |
| Jupiter Analysts on Google's Sidebar/Browser/Windows Co-Opt | WPW_Feedbot | Search Engine Optimization Forum | 0 | 08-23-2005 02:00 PM |
| Content and Sidebar Divs | bobby9101 | Graphics & Design Discussion Forum | 6 | 08-08-2005 07:30 AM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2010 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |