Forum Moderators: mack

Message Too Old, No Replies

Changing text across all pages at once?

         

74simon

10:29 am on Apr 5, 2004 (gmt 0)

10+ Year Member



I don't know if i've phrased that quite rightly, but here goes anyway...

Basically this: I've got a website of 30-odd pages, and I want to know if there's a method by which I can update sections of text that are common across all pages - eg the menu - without having to go through each page. I've been told that there's some way of doing this using CSS (which I'm currently getting to grips with), but i'll be damned if I can google it up!

Or am I barking up the wrong tree?

74simon

10:47 am on Apr 5, 2004 (gmt 0)

10+ Year Member



*panic over*

Just been able to pinch it from another site's code...

and it was Javascript, not CSS. Well, I was close...

grandpa

10:48 am on Apr 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hello 74simon. Welcome to WebmasterWorld.

I think what you need to google up is <include>.

<edit> eh.. Welcome anyway :) </edit>

caskie

1:42 pm on Apr 5, 2004 (gmt 0)

10+ Year Member



yeh, i normally go with include files, for things like footers, sets of links, anything really that goes on multiple pages, quick and easy to update. :-)

encyclo

2:16 pm on Apr 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



and it was Javascript, not CSS. Well, I was close...

Well... you're closer, but still no cigar! Javascript is not an ideal solution - as grandpa mentioned, what you really need is a Server-Side Include (SSI). As he mentioned, there are a million threads on this forum about SSI, just do a search.