Menu

Using <iframe> for header and footer

mtrocme
2012-06-04
2013-06-11
  • mtrocme

    mtrocme - 2012-06-04

    Hi there,

    I use Trac and often commit my code doxygenized.
    As the default time-stamped footer is copied on each webpage, all the webpages have to be commited as soon as a change is made on one of them, which can be quite long.
    How about implementing the possibility to use some iframed header and footer?
    This way only the file(s) modified and the footer (header) would need to be commited.

    I made successful tests moving the customizable parts of header.html and footer.html to header_.html and footer_.html by sandwiching them between

    <html><body><head><link href="customdoxygen.css" rel="stylesheet" type="text/css"/></head>
    

    and

    </body></html>
    

    and replacing them in header.html and footer.html by

    <iframe src="header_.html" width="100%" height="80px" marginheight="0px" marginwidth="0px" frameborder="0" scrolling="no"></iframe>
    

    and

    <iframe src="footer_.html" width="100%" height="30px" marginheight="0px" marginwidth="0px" frameborder="0" scrolling="no"></iframe>
    

    respectively.

    Cheers,
    Mathieu

     
  • mtrocme

    mtrocme - 2012-06-05

    Note for links in such frames, the target attribute can be useful:

    <a href="http://www.doxygen.org/index.html" target="blank"><img class="footer" src="doxygen.png" alt="doxygen"/></a>
    

    Cheers,
    Mathieu

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.