SunQuest
 
           Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old June 17th, 2003, 10:52 PM
Scotty Scotty is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 4 Scotty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile How to add same content to several pages with out duplicating pages

...
Attached Images
File Type: gif mcc.gif (34.2 KB, 379 views)

Last edited by Scotty : June 17th, 2003 at 10:57 PM.

Reply With Quote
  #2  
Old June 17th, 2003, 11:10 PM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
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.

Reply With Quote
  #3  
Old June 18th, 2003, 02:58 AM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
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.....
__________________
Matt 'Fakker' Facer

mattfacer.com

Reply With Quote
  #4  
Old June 18th, 2003, 09:34 AM
Scotty Scotty is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 4 Scotty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

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.

Reply With Quote
  #5  
Old June 18th, 2003, 12:09 PM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
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!!

Reply With Quote
  #6  
Old July 2nd, 2003, 02:32 PM
Scotty Scotty is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 4 Scotty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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:
Originally posted by fakker
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!!

Reply With Quote
  #7  
Old July 2nd, 2003, 02:54 PM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
Quote:
Originally posted by Scotty
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.

Do not use tables. Use CSS.

Reply With Quote
  #8  
Old July 3rd, 2003, 07:16 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
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?)

Reply With Quote
  #9  
Old July 3rd, 2003, 12:59 PM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
Quote:
Originally posted by dhouston
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.
Take my word for it... Everything a table can do for positioning, CSS can do better, faster, and cleaner.

Quote:
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?)

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/

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > How to add same content to several pages with out duplicating pages


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway