how to load custom header/footer html

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to load custom header/footer html

Kenlee Nakasugi-2
Hi,

I'm trying to create a customer header (and footer) for the Gbrowse landing page, according to our institutions html template.
I've tried adding to the "head =", "header =" , and other html1, html2 ... sections, but to no avail.

The html template has its own stylesheets, javascripts and images. I tried copying these under /var/www/html, /var/www/html/gbrowse2/, /etc/gbrowse2, but I still can't get the headers to load.
I also tried referring to an external html containing the header information, but this also didn't work.
The Gbrowse landing page loads fine, it's just the header don't appear, and there are no errors in the apache logs.


Some examples of what I tried below. Could someone help?

e.g. head section
##########################################
head =
#               <!-- Start Page Specific Metadata -->
                <meta http-equiv="Cache-Control" content="no-cache" />
                <meta name="copyright" content="Copyright of institution" />
                <meta name="description" content="PLEASE ENTER A DESCRIPTION FOR YOUR PAGE" />
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

#               <!-- Start Page Specific Dublin Core -->

                <meta name="DC.Title" content="YOUR PAGE TITLE" />
                <meta name="DC.Subject" content="SUBJECT OF PAGE" />
                <meta name="DC.Creator.personalName" content="YOUR NAME" />
                <meta name="DC.Creator.corporateName" content="ROLE OR AREA" />
                <meta name="DC.Description" content="DESCRIPTION " />
                <meta name="DC.Date.modified" content="DATE OF LAST MODIFICATION YYYY-MM-DD" />
                <meta name="DC.Date.valid" content="DATE OF LAST MODIFICATION YYYY-MM-DD" />
                <meta name="DC.Date.created" content="DATE OF LAST MODIFICATION YYYY-MM-DD" />
                <meta name="DC.Identifier" content="THE URL OF YOUR SITE" />
                <meta name="DC.Rights" content="Copyright of institution" />
                <meta name="DC.Language" content="en" />

#               <!-- End Page Specific Dublin Core -->

#               <!-- End Page Specific Metadata -->

#               <!-- Start Site Specific Dublin Core -->

                <meta name="DC.Publisher" content="Institution" />

#               <!-- End Site Specific Dublin Core -->

#               <!-- End Site Specific Metadata -->

                <title>QUT - REPLACE WITH YOUR TITLE</title>

                <link rel="stylesheet" href="css/global.css" type="text/css" />
                <link rel="stylesheet" href="css/inside.css" type="text/css" />

                <script type="text/javascript" src="js/jquery-151minjs.js"></script>   #<!--jquery-1.5.1.min.js-->
                <script type="text/javascript" src="js/global.js"></script>  # <!--global.js-->


####################################################


e.g. header section
####################################################
header = sub{
       open FILEHANDLE, 'header.html' or die $!;
       my $html_header = do { local $/; <FILEHANDLE> };
       return $html_header;
       }
####################################################

or
####################################################

        <body class="home-page logged-in">
                <div id="header-wrapper">
                        <div id="header"><a id="logo" href="." title="Link to YOUR SITE HOME"><img src="images/site-logo.png" alt="" /><span>PROJECT</span></a>
                        <div id="blue-bar"></div>
                        <div id="strapline"> <img src="images/strapline.png" alt="STRING" /> </div>

                        </div>
                </div>
        </body>
####################################################




Thanks
Ken

--------------------

Kenlee Nakasugi

Rm873, Bldg-G08 (level 8)
School of Molecular Bioscience
University of New South Wales
Ph: 02-9114-1321

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Gmod-gbrowse mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse
Reply | Threaded
Open this post in threaded view
|

Re: how to load custom header/footer html

Scott Cain
Hi Ken,

I have a few suggestions:

1. When you have continuing lines (like in your first example), don't have anything but whitespace in the first column (like the comment/# marks); the GBrowse config parser sees white space in the first column as a continuation, anything else is the start of the next item (not sure if comments are immune, but the comment marks aren't doing anything there anyway).

2. If you're using fcgi, make sure you restart apache when you make changes to the config files.

3. Browsers can be a pain when it comes to caching pages.  Use a browser like Chrome that lets you turn caching off.

4. I can't remember off hand, but you might not be allowed to open file handles from inside the gbrowse config, or (more likely), you have to keep in mind that it's the apache user that will do the opening, so make sure the permissions are OK.

Scott





On Wed, Dec 11, 2013 at 10:16 PM, Kenlee Nakasugi <[hidden email]> wrote:
Hi,

I'm trying to create a customer header (and footer) for the Gbrowse landing page, according to our institutions html template.
I've tried adding to the "head =", "header =" , and other html1, html2 ... sections, but to no avail.

The html template has its own stylesheets, javascripts and images. I tried copying these under /var/www/html, /var/www/html/gbrowse2/, /etc/gbrowse2, but I still can't get the headers to load.
I also tried referring to an external html containing the header information, but this also didn't work.
The Gbrowse landing page loads fine, it's just the header don't appear, and there are no errors in the apache logs.


Some examples of what I tried below. Could someone help?

e.g. head section
##########################################
head =
#               <!-- Start Page Specific Metadata -->
                <meta http-equiv="Cache-Control" content="no-cache" />
                <meta name="copyright" content="Copyright of institution" />
                <meta name="description" content="PLEASE ENTER A DESCRIPTION FOR YOUR PAGE" />
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

#               <!-- Start Page Specific Dublin Core -->

                <meta name="DC.Title" content="YOUR PAGE TITLE" />
                <meta name="DC.Subject" content="SUBJECT OF PAGE" />
                <meta name="DC.Creator.personalName" content="YOUR NAME" />
                <meta name="DC.Creator.corporateName" content="ROLE OR AREA" />
                <meta name="DC.Description" content="DESCRIPTION " />
                <meta name="DC.Date.modified" content="DATE OF LAST MODIFICATION YYYY-MM-DD" />
                <meta name="DC.Date.valid" content="DATE OF LAST MODIFICATION YYYY-MM-DD" />
                <meta name="DC.Date.created" content="DATE OF LAST MODIFICATION YYYY-MM-DD" />
                <meta name="DC.Identifier" content="THE URL OF YOUR SITE" />
                <meta name="DC.Rights" content="Copyright of institution" />
                <meta name="DC.Language" content="en" />

#               <!-- End Page Specific Dublin Core -->

#               <!-- End Page Specific Metadata -->

#               <!-- Start Site Specific Dublin Core -->

                <meta name="DC.Publisher" content="Institution" />

#               <!-- End Site Specific Dublin Core -->

#               <!-- End Site Specific Metadata -->

                <title>QUT - REPLACE WITH YOUR TITLE</title>

                <link rel="stylesheet" href="css/global.css" type="text/css" />
                <link rel="stylesheet" href="css/inside.css" type="text/css" />

                <script type="text/javascript" src="js/jquery-151minjs.js"></script>   #<!--jquery-1.5.1.min.js-->
                <script type="text/javascript" src="js/global.js"></script>  # <!--global.js-->


####################################################


e.g. header section
####################################################
header = sub{
       open FILEHANDLE, 'header.html' or die $!;
       my $html_header = do { local $/; <FILEHANDLE> };
       return $html_header;
       }
####################################################

or
####################################################

        <body class="home-page logged-in">
                <div id="header-wrapper">
                        <div id="header"><a id="logo" href="." title="Link to YOUR SITE HOME"><img src="images/site-logo.png" alt="" /><span>PROJECT</span></a>
                        <div id="blue-bar"></div>
                        <div id="strapline"> <img src="images/strapline.png" alt="STRING" /> </div>

                        </div>
                </div>
        </body>
####################################################




Thanks
Ken

--------------------

Kenlee Nakasugi

Rm873, Bldg-G08 (level 8)
School of Molecular Bioscience
University of New South Wales
Ph: 02-9114-1321

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Gmod-gbrowse mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse



--
------------------------------------------------------------------------
Scott Cain, Ph. D.                                   scott at scottcain dot net
GMOD Coordinator (http://gmod.org/)                     216-392-3087
Ontario Institute for Cancer Research

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Gmod-gbrowse mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse