[greenstone-users] Re: CSS in ver 2.70

From John R. McPherson
DateTue, 18 Apr 2006 13:52:30 +1200
Subject [greenstone-users] Re: CSS in ver 2.70
In-Reply-To (20060417111515-46907-qmail-web8803-mail-in-yahoo-com)
On Mon, Apr 17, 2006 at 12:14:52PM +0100, Sharad Jadhav wrote:

> I tried reloading with shift+reload option. The collection
> homepage page was displayed with red coloured css. But only for
> search button and not to other classifiers. After a while I I reload
> the page, but now found it with the default css settings.

Sorry, but I can't really tell what the problem is with your config settings.

> Please let me know how to place the desired css file link in
> config.cfg file.

I put the style sheets and the collect.cfg file as the documents inside
the style demo collection. The important bit is the following:

collectionmacro Style:cssheader '
<link rel="stylesheet" href="/gsdl/web/images/style.css"
type="text/css" charset="UTF-8">'

which overwrites the default html written into the page's HEAD tags.
Use /gsdl/collect/gsarch if you want to generate a runtime HTML link to
your collection directory - that's what I did for the collection-specific
style files.

You can see the full collect.cfg file: