Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Child Mirror of Master Page - Inheritance Issue?

    I have a banner and a drop down menu that I want on all of my html pages. My problem is that when I need to make updates (pretty regularly), I have to update each HTML page with the new code which I know is not an efficient way to implement updates.

    What I want to do is to have the HTML code within the "mirrors" take code from one "master" page. Essentially I want to update one page which will then in turn update each of the other pages.

    I think I need to write a public method and then call it within the mirrors however I do not know how to do this.

    Basically how do I tell a page to grab the code from another page and use it as its own???

    Help!!!

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,300
    Thanks
    28
    Thanked 275 Times in 269 Posts
    Assuming that your host supports PHP, you would use PHP includes.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #3
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Unfortunately I am building the page within an application (livelink) that only runs HTML.

  • #4
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    HTML is only a markup language. You would need to use includes of some sort, which require scripting. Maybe javascript is an option?

  • #5
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,300
    Thanks
    28
    Thanked 275 Times in 269 Posts
    Well, then I think that the obvious answer is to use frames or iframes.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •