Adding Repeating information to HTML page

Potish

Member
I need to add footer information to several html pages that includes the contact details. The details can vary by customers location and there is a table that contains the information for each location. I am looking for a solution similar to an include file, but that can works on html.

The footer will include static information and dynamic information. They dynamic information can change from time to time and I would prefer one location where I can update this and have it update on all pages. Sample footer code would look as follows

Copyright 2014 - 2015 CompanyName. All Rights Reserved <-Static
if locationtable.locationfield = "US" then <- Dynamic section
Phone: phonetable.phone1field
else if locationtable.locationfield = "CA" then
Phone: phonetable.phone2field
 

Cecil

19+ years progress programming and still learning.
Is this a WebSpeed Question?
Do you have multiple top-level domain names for each region, i.e. .com and .ca?

If it is webspeed related question do you have multiple webspeed brokers, one per domain.
 
Last edited:

Potish

Member
Is this a WebSpeed Question?
Do you have multiple top-level domain names for each region, i.e. .com and .ca?

If it is webspeed related question do you have multiple webspeed brokers, one per domain.

Yes this code would be running on WebSpeed.

No there is only one domain. Also the example I provided shows country locations but that is just a simplified version for the code. It is possible for the phone number to change based on other factors such as client balance.

There is only one webspeed broker for the domain.
 
Last edited:

GregTomkins

Active Member
Not sure if this helps, but FYI Apache has a thing called server-side includes that can be helpful. You have to setup some config in one of the many Apache config files, I forget the details but I'm sure you could find this easily online. I'm not sure how widely this feature is supported across different web servers though.

http://en.wikipedia.org/wiki/Server_Side_Includes
 
Top