[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[THREDDS #IZW-298295]: Customise TDS [SEC=UNCLASSIFIED]



> Hi Lansing/Ethan,
> 
> Thank you all for helping me to resolve the standard/heading. However if you 
> got out website: www.bom.gov.au. There is the structure of our header and 
> footer.
> 
> Blue banner is header - use server side include
> Gray part at the bottom is the footer - also use server side include
> 
> We wanted to use these two server side include to wrap around your content 
> which is http://localhost:8080/thredds/catalog.html. This is what we wanted 
> to achieve. It is possible?
> 
> Cheers,
> Ken Toch
> 
> 
> 
> 
> -----Original Message-----
> From: Unidata THREDDS Support [mailto:address@hidden
> Sent: Saturday, June 30, 2012 9:03 AM
> To: Ken Toch
> Cc: address@hidden; Ken Toch
> Subject: [THREDDS #IZW-298295]: Customise TDS [SEC=UNCLASSIFIED]
> 
> Hi Ken,
> 
> Just wanted to make a quick addition to Lansing's note.
> 
> The webapps directory gets replaced by a new copy whenever you deploy a new 
> thredds.war. So, you might want to copy the tdsCat.css file from the 
> ${tomcat_home}/webapps/thredds directory into the content/thredds/public 
> directory. That directory is checked first and does not get replaced when a 
> new version is deployed.
> 
> Also, the dataset HTML files include a tds.css file instead of tdsCat.css. 
> So, you might want to copy that one over as well and modify it in a similar 
> manner.
> 
> Hope that helps.
> 
> Have a good weekend,
> 
> Ethan
> 
> On 6/29/2012 2:07 PM, Lansing Madry wrote:
> > Hi Ken,
> >
> > I have an easy solution for you, which should work to get your header
> > and footer in place.  You can work with the tdsCat.css file under the
> > ${tomcat_home}/webapps/thredds directory and modify the bit on H1 and
> > H3.  For instance, to put in a footer, I made the following
> > modifications:
> >
> > H3 {
> >   font-family: Tahoma, Arial, sans-serif;
> >   color: white;
> >   background-color: #0000ff;
> >   height: 120px;
> >   font-size: 14px;
> >   background-image: 
> > url("http://www.unidata.ucar.edu/img/packages/thredds.gif";);
> >   background-position: right center;
> >   background-repeat: no-repeat;
> > }
> > > This puts the thredds logo on a blue background in the footer to the
> > catalog page.  You can do something similar to the header by changing
> > H1.
> >
> > We're going to be revising how the html content is generated "soon",
> > probably in the next few months, but this should do what you need for
> > now.
> >
> > Cheers,
> >   Lansing
> 
> 
> Ticket Details
> ===================
> Ticket ID: IZW-298295
> Department: Support THREDDS
> Priority: High
> Status: Closed
> 
> 
Hi Ken,

What I've found is that I can control the header and footer information 
directly from our java code by modifying the htmlwriter.java file.  You can do 
this if you are comfortable unpacking the thredds.war, making the changes you 
would like, and repacking.  For now, that is the best I can offer you, though 
customizable html is on our wishlist.

Let me know if I can help with anything else in the meantime.

Cheers,
  Lansing

Ticket Details
===================
Ticket ID: IZW-298295
Department: Support THREDDS
Priority: High
Status: Open


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.