Re: [greenstone-users] CSS help AND Style sheet

From June Yang
DateWed, 22 Jun 2005 12:25:56 -0400
Subject Re: [greenstone-users] CSS help AND Style sheet
In-Reply-To (20050622135427-0A0959E7AB-ws6-2-us4-outblaze-com)
Hi Jonathan,

The stylesheet used in the Garish collection is very basic with layout
only for paragraphs, headings, etc. What if I want to use stylesheet for
classifier buttons (subjects, titles, etc..)? How do I reference them?

Thanks,

June

Jonathan Tremblay wrote:

>Hi Henny,
>
>You have to specify the path of your stylesheet RELATIVELY to the Greenstone folder.
>
>So if I understand, your file is located at:
>"GreenstonecollectCostumesStylestyle.css"
>
>Then your statement should be:
><link rel="stylesheet" type="text/css" href="/collect/Costumes/Style/style.css">
>
>(No need to use "../" in the path)
>
>Jonathan Tremblay
>
>----- Original Message -----
>From: "Henny Mariane Sutedjo" <anastasiahenny@yahoo.com>
>To: "Jonathan Tremblay" <jonathan@piccolo.net>
>Subject: RE: [greenstone-users] CSS help AND Style sheet
>Date: Tue, 21 Jun 2005 21:27:05 -0700 (PDT)
>
>
>
>>Hi Jonathan,
>>
>>Thanks a lot for your reply. But, I still don't really get
>>what you mean, pls pardon me for I am very new to Greenstone.
>>
>>I did try before this method to link the style sheet:
>><head>
>> <title></title>
>> <link rel="stylesheet" type="text/css" href="../style/style.css">
>></head>
>>But it didn't work.
>>
>>I'm confuse with your statement:
>>In this example, the stylesheet file must be in the greenstoneimages
>>folder.
>>
>>Is that mean there is rule to follow in the way I arrange the folder,
>>contents, etc. I put my .css file inside STYLE folder under my project
>>e.g. "CostumesStylestyle.css" and when I created the collection, I
>>just simply copy the whole Costumes folder into the Greenstone
>>collection folder. Was that the mistake that caused it didn't work?
>>
>>Appreciate very much your help as I'm desperately lost.
>>
>>-henny
>>--- Jonathan Tremblay <jonathan@piccolo.net> wrote:
>>
>>
>>
>>>Hi June and Henny,
>>>
>>>Yes, css/stylesheet can be used with Greenstone.
>>>
>>>The function which has to be modified is located in
>>>greenstonemacrosstyle.dm :
>>>
>>> GSDL Error {
>>><html>
>>><head>
>>><title>GSDL Error</title>
>>>
>>></head>
>>>
>>><body bgcolor="#ffffff" text="#000000" link="#006666"
>>>alink="#cc9900" vlink="#666633" _1_>
>>>}
>>>
>>>You will have to add this line between <head> and </head> in the GSDL Error
>>>function :
>>><link rel="stylesheet" href="/gsdl/web/images/YOURSTYLE.css" type="text/css"/>
>>>
>>>You should replace YOURSTYLE.css with the name of your stylesheet.
>>>In this example, the stylesheet file must be in the greenstoneimages
>>>folder.
>>>
>>>You can also take a look at the garish collection, available in the
>>>"Documented Example Collections (42MB)" file which can be downloaded from
>>>http://www.greenstone.org/cgi-bin/library?e=p-en-download-utfZz-8&a=p&p=down
>>>load Jonathan Tremblay
>>>
>>>
>>>-----Message d'origine-----
>>>De : greenstone-users-bounces@list.scms.waikato.ac.nz
>>>[mailto:greenstone-users-bounces@list.scms.waikato.ac.nz] De la part de June
>>>Yang
>>>Envoyé : 20 juillet 2005 12:23
>>>À : greenstone-users@list.scms.waikato.ac.nz
>>>Objet : [greenstone-users] CSS help
>>>
>>>Hi all,
>>>
>>>I searched on this list about using CSS to format the pages and I came
>>>across one example below:
>>>http://srm-cd.niwi.knaw.nl/gsdl/cgi-bin/library.exe?a=p&p=home&l=en&w=utf-8
>>>(click on the button says 1958-1980)
>>>I noticed that this site used external css files. My question is: where
>>>should these css files be put under gsdl directory and how to reference them
>>>in the documents? Since pages such as browse by title/subject were generated
>>>on the fly, I am kind of lost here. Can anybody help me with it?
>>>
>>>Thanks,
>>>
>>>June
>>>
>>>-----Message d'origine-----
>>>De : greenstone-users-bounces@list.scms.waikato.ac.nz
>>>[mailto:greenstone-users-bounces@list.scms.waikato.ac.nz] De la part de
>>>Henny Mariane Sutedjo
>>>Envoyé : 20 juin 2005 02:14
>>>À : greenstone-users@list.scms.waikato.ac.nz
>>>Objet : [greenstone-users] Style sheet
>>>
>>>Hi Group,
>>>
>>>Does greenstone allow us to use style sheet?
>>>I have tried to use both method: embed the style sheet inside the Web page
>>>and use external style sheet. When I execute the Web page alone, it worked
>>>fine. But, when I uploaded the collection into Greenstone, both method were
>>>not working, there was no style adopted and all fonts went to normal (times
>>>new roman). Any help would be appreciated. Thanks.
>>>
>>>-henny
>>>
>>>
>>>_______________________________________________
>>>greenstone-users mailing list
>>>greenstone-users@list.scms.waikato.ac.nz
>>>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>>
>>>
>>>_______________________________________________
>>>greenstone-users mailing list
>>>greenstone-users@list.scms.waikato.ac.nz
>>>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>>
>>>
>>>
>>__________________________________________________
>>Do You Yahoo!?
>>Tired of spam? Yahoo! Mail has the best spam protection around
>>http://mail.yahoo.com
>>
>>
>
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>
>