Follow us on Twitter!
Follow us on Facebook!
 

Go Back   Pixtus - Photography Forum, Photographers, Photo Tips > General Information > Open Talk


HTML question inside.

This is a discussion on HTML question inside. within the Open Talk forums, part of the General Information category; One of my websites has 7 HTML pages. Let's say I want to update the copyright info in the footer. ...

Reply
 
LinkBack Thread Tools Display Modes
  (#1) Old
The Nice Moderator
 
Sonny's Avatar
 
Posts: 6,977
Join Date: May 2005
Location: NW Houston, Texas
Real First Name: Sonny
Camera: Canon
Can Others Edit My Photos: Yes
iTrader Rating: 8

Likes Received LIKES Received: 309
Likes Given LIKES Given: 73
HTML question inside. - 12-07-2009, 01:00 AM


One of my websites has 7 HTML pages. Let's say I want to update the copyright info in the footer. I have to edit all seven pages.

Better yet, let's say I add another page to my website. Now I have to edit all seven pages to include the link in the navigation menu...twice. Why twice? Because I have a small navigation menu at the bottom too.

Here's the question. Is there a way I can simplify this process? Hope someone can lead me in the right direction.

Thanks,
-Sonny

---------------------------
Support Pixtus by Purchasing Your Gear From: B&H Photo | Amazon | Adorama
Our Forum Rules | Report posts that break the Site Rules | Lightroom Learning Center
Reply With Quote
Sponsored Links

Premium Members do not see Google advertisements. SIGN UP today and help support our community.
  (#2) Old
Forum Regular
 
hotshot38's Avatar
 
Posts: 588
Join Date: Aug 2008
Location: San Antonio, Texas
Real First Name: Sean
Camera: Canon 40D*grip
Can Others Edit My Photos: Yes
iTrader Rating: 0

Likes Received LIKES Received: 5
Likes Given LIKES Given: 0
12-07-2009, 01:11 AM


I think what I used to do there was make a .html document and call it footer.html....then I used an iframe statement at the bottom of the page on each page that referenced that document.

You might be able to take it a step further and do something with CSS....that's basically what stylesheets do: let you make 1 change that effects all pages that it's referenced to.

-Sean
Reply With Quote
  (#3) Old
Forum Master
 
MicWayWal's Avatar
 
Posts: 1,812
Join Date: Mar 2005
Location: Plano, Texas
Real First Name: Michael
Camera: Canon
Can Others Edit My Photos: No
iTrader Rating: 0

Likes Received LIKES Received: 21
Likes Given LIKES Given: 0
12-07-2009, 01:20 AM


+1

---------------------------
Michael Wayne
(blog) (website) (business facebook)
Reply With Quote
  (#4) Old
Forum Regular
 
hotshot38's Avatar
 
Posts: 588
Join Date: Aug 2008
Location: San Antonio, Texas
Real First Name: Sean
Camera: Canon 40D*grip
Can Others Edit My Photos: Yes
iTrader Rating: 0

Likes Received LIKES Received: 5
Likes Given LIKES Given: 0
12-07-2009, 01:25 AM


It's been a long time since I've done that....I think there was another way. In Frontpage there was a webbot type thingy that did an 'Include' ....not sure how it worked but I think it was on the menu as: Insert--->Web Component---->Included Content ...and then you just picked the page you wanted to include in the other. I'm not sure what the HTML behind it was to do it outside of Frontpage though...sorry.
Reply With Quote
  (#5) Old
Junior Member
 
lars's Avatar
 
Posts: 1
Join Date: Sep 2009
Location: Kingwood,
Real First Name: Lars
Camera: Nikon d80
iTrader Rating: 0

Likes Received LIKES Received: 0
Likes Given LIKES Given: 0
12-08-2009, 11:39 AM


there's a couple ways you can do it. i suggest using server-side includes before iframe's... this is an example of a server-side include:

<!--#include virtual="footer.html" -->

you might have to mess with your htaccess file or use a .shtml file if the server side include's don't work the way your web server is setup now. A quick google search got me started the first time.

alternatively, if you are using php, then they make it super easy:

<?php include("footer.php"); ?>

I use the php method on my website
Reply With Quote
  (#6) Old
You Can't Be Serious!!
 
JohnT's Avatar
 
Posts: 11,747
Join Date: Dec 2005
Location: Ft. Worth, Texas
Real First Name: John
Camera: 5DMkII, 7D, LX3
Can Others Edit My Photos: No
iTrader Rating: 24

Likes Received LIKES Received: 94
Likes Given LIKES Given: 348
12-08-2009, 11:51 AM


Quote:
Originally Posted by lars View Post
there's a couple ways you can do it. I suggest using server-side includes before iframe's... This is an example of a server-side include:

<!--#include virtual="footer.html" -->

you might have to mess with your htaccess file or use a .shtml file if the server side include's don't work the way your web server is setup now. A quick google search got me started the first time.

Alternatively, if you are using php, then they make it super easy:

<?php include("footer.php"); ?>

i use the php method on my website
+1

---------------------------
Everyone wants to be a rock star, but no one wants to learn the chords.
Reply With Quote
  (#7) Old
Forum Regular
 
Peacock's Avatar
 
Posts: 570
Join Date: Jan 2005
Location: Harker Heights, TX, Texas
Real First Name: Andres
Camera: Canon
Can Others Edit My Photos: Yes
iTrader Rating: 0

Likes Received LIKES Received: 0
Likes Given LIKES Given: 2
Send a message via Yahoo to Peacock
12-08-2009, 06:48 PM


I guess the first question I would ask is are you using just regular static html pages? Or something more dynamic such as .php or .aspx pages / server? This will help determine which route to go with your design...

---------------------------
Andres Perales
andres@andresperales.com
http://www.andresperales.com
http://photos.andresperales.com
The Photographer Formally Known as "Peralesa"
Reply With Quote
Reply

Tags
html, inside, question

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Visit Our Sponsors
 

Google Sponsors

Premium Members do not see Google advertisements. SIGN UP today and help support our community.

Copyright ©2004 - 2011, Abel Longoria - www.Pixtus.com
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.