|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
...
Last edited by Scotty : June 17th, 2003 at 10:57 PM. |
|
#2
|
|||
|
|||
|
This project is definately a candidate for SSI (Server Side Includes).
There is an ok article on Devarticles on this: http://www.devarticles.com/art/1/183 But even better is the apache documentation: http://httpd.apache.org/docs/howto/ssi.html Look for the section "Including a standard footer"
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
|||
|
|||
|
hey...
laidbak is right... SSI would be the best bet.... you'd do something like: index.shtml (note the Shtml!) would look like: <table> <tr> <!-- left menu --> <td><!-- #include virtual="menu.html" --></td> <!-- main content --> <td>your chaning content goes here......</td> </tr></table> So your menu would be created, named "menu.html" (or something) then this can be called from any page... but the extension must be named PAGE.shtml ..... also, your host must support SSI..... |
|
#4
|
|||
|
|||
|
I must tell you that this is awsome. I don't know why I never read up on this before. Once working this will make my life easy.
Ok now this is what I have <table> <tr> <!-- left menu --> <td><!-- #include virtual="test.shtml" --></td> <!-- main content --> <td><!-- #include virtual="main.html" --></td> </tr></table> And I am having trouble lining them up Last edited by Scotty : July 2nd, 2003 at 01:57 PM. |
|
#5
|
|||
|
|||
|
hey,
here's a few things: - the includes dont need to be SHTML extensions... they can be simply HTML extensions... - you need to set the width of the TD's etc... eg: <td width="300"></td> - in the include files, remove the <HTML> and <BODY> tags... as you already have them in the main page..... hope that helps!! |
|
#6
|
|||
|
|||
|
Still having trouble.
I can include both on one page but having trouble lining them up. I can't figure how to make the tables for what I am doing. Quote:
|
|
#7
|
|||
|
|||
|
Quote:
Do not use tables. Use CSS. |
|
#8
|
||||
|
||||
|
You've still got opening and closing <html> and <head> tags in the middle of your document. Make it easy on yourself by building the page once and making it look perfect. Then cut repeating parts and replace them with SSI references. Paste them into files whose names correspond to the SSI references. Voila -- a template. I suspect Frontpage may be screwing you by adding these extra tags to your includes when you edit them after creating them originally.
As for CSS in lieu of tables, I'm not sure CSS is quite up to snuff for some of the more complex, precise stuff. At any rate, it doesn't always render correctly on older browsers or on UNIX platforms. If you're not concerned about these users, fine, but being one of them, I tend to stick to solutions that'll work across the board, and good old fashioned tables are pretty reliable. (On the other hand, I've strained against CSS as a positioning tool and so may not be up on the most current iterations of the standard. Maybe it does work and I'm shooting myself in the foot with my blissful ignorance. Anybody want to point to any good articles on the topic?) |
|
#9
|
||||
|
||||
|
Quote:
Quote:
http://www.saila.com/usage/tips/css...cho.com/css.htm http://www.sitepoint.com/subcat/90 http://http:33www.w3schools.com/css/default.asp http://www.glish.com/css/ http://www.alistapart.com/ |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > How to add same content to several pages with out duplicating pages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|