Forum Moderators: mack

Message Too Old, No Replies

Adding content to more than one page

without having to edit each page

         

frisso

10:36 am on May 23, 2005 (gmt 0)

10+ Year Member



I would like a quick way to update the same information on a load of pages together instead of updating each one seperately.
I was using iframes but i do not really like them is there anything else i can use instead?

thank you

roldar

10:46 am on May 23, 2005 (gmt 0)

10+ Year Member



Sounds like you'd benefit from SSI (server side includes). Basically you just have a separate file which you call on each individual page. Then, when you want to change something across all the pages, all you have to do is change the single file they're all including.

You'll need to be using a language like PHP or ASP to use these, however. If you're on a *nix server, PHP is your friend. IIS and you're likely to have support for ASP.

Since it sounds like you've got a lot of established pages, the easiest way to make this happen would be to add the includes to all your .html files, then change the server settings so the html files are parsed as php or asp.

frisso

10:52 am on May 23, 2005 (gmt 0)

10+ Year Member



ok thankyou

Psazf

6:09 pm on Jun 6, 2005 (gmt 0)

10+ Year Member



Hello, I'm new to the forum, so my answer can be a little later, but here it is:

I know a tool called HTML2JS, that makes:

HTML2JS converts snippets of HTML-code into JavaScript, so you can easily link it into multiple pages with a simple tag. The technique is similar to SSI tags, but client based. The idea is: If you want a menu to appear on a couple of pages and something has to be changed you only have to edit your template and run HTML2JS once instead of editing the menu on all pages manually. Wherever you place the tag in your pages, it will "inject" the content of the template file.

How to get it?
Go to smapfiles.com and search for HTML2JS

Hope this helps
Paulo

kiwibrit

2:31 pm on Jun 7, 2005 (gmt 0)

10+ Year Member



I tend to use Dreamweaver templates for this. I would also have thought you could use CSS, in some circumstances.