Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syncronizing web pages

Status
Not open for further replies.

mrasp

Programmer
Jul 8, 2001
1
US
Hi there.

Is there anyway for other pages to be tied to a section of a webpage to code less?

Example: I hava a dhtml menu on a web page. I use the same menu on other pages. Now if I add or subtract from the menu on one page can other pages automatically syncronize with the changes without the need for copying the changes and pasting them in to all the other pages or even having to go and manually recode the changes?

Currently I have the pages saved as .html. The web pages do reside on a server and I deal with front page. I am not too familiar with SSI if that's your answer. Maybe you can provide an example.

Thanks-big time.

Jim
 
If you are using frontpage I beleive you can save it as a shared border then it will update the way you are requesting.

Good Luck!
 
SSI is the method I'm using to achieve this. Assuming your web server is set up for SSI, you can create a file for your menu (saved as *.txt or *.html - check on the server's config) & then include this file in your pages (you may need to change from *.html to *.shtml - check your server again!) using
<!-- #include file=&quot;relative_path/filename&quot; -->
or
<!-- #include virtual=&quot;/path/filename&quot; -->

See the
thread215-101852 for more info on this

HTH

AJC
 
You can also use templates if you use and IDE like Dreamweaver. You can use this until you get familiar with SSI (not too hard) or just get addicted to using Dreamweaver's features. &quot;It's easier to ask forgiveness than it is to get permission.&quot; - Rear Admiral Dr. Grace Hopper
 
The thread referenced above for ssi include is rather long and confusing for a simple concept. &quot;file=&quot; is relative to the directory of the current document. &quot;virtual=&quot; is relative to the base html directory. So if the file you want to include is in the same directory as the pages you want to include it in, use &quot;file=name&quot;. If it's in a sub directory of the directory containing the pages you want to include it in, use &quot;file=subdir/name&quot;. If it's in an entirely different directory, use &quot;virtual=&quot;/path/name&quot;.

The ssi standard generally requires that files containing ssi statements end in .shtm or .shtml. That's how the web server knows to parse them for ssi statements.

The ssi standard doesn't say anything about the extension of the file you include, so you can make them .html or .txt or whatever.
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top