[greenstone-devel] RE : [greenstone-users] CSS for different pages

From HERNEBRING Patrick
DateFri Dec 28 23:40:15 2007
Subject [greenstone-devel] RE : [greenstone-users] CSS for different pages
Hi Michael,

Thanks a lot for your answer that, unhappily, solve only a part of my problem.

If I add in "extra.dm", (for example):


package document

_collectionspecificstyle_ {
<link rel="stylesheet" href="_httpimg_/mystyle.css" type="text/css" charset="UTF-8" />
}

The style specifications of "mystyle.css" will also concern the pages where the lists generated by the browsing classifiers are displayed... Is it possible that a specific style concern only pages where current documents are displayed ?

Regards,

Patrick


Patrick Hernebring
Fonds musical ancien - Num□risation
Biblioth□que d'Etude et du Patrimoine
Biblioth□que de Toulouse
1 rue de P□rigord, 31000 Toulouse
T□l : 05 62 27 63 76
-----Message d'origine-----
De : Michael Dewsnip [mailto:mdewsnip@cs.waikato.ac.nz]
Envoy□ : vendredi 28 d□cembre 2007 00:28
□ : HERNEBRING Patrick
Cc : greenstone-users@list.scms.waikato.ac.nz; greenstone-devel@list.scms.waikato.ac.nz
Objet : Re: [greenstone-users] CSS for different pages

Hi Patrick,

You can do this by specifying the "_collectionspecificstyle_" macro in your collection's "extra.dm" file, for example:

package about

_collectionspecificstyle_ {
<link rel="stylesheet" href="_httpimg_/about.css" type="text/css" charset="UTF-8" />
}

package home

_collectionspecificstyle_ {
<link rel="stylesheet" href="_httpimg_/home.css" type="text/css" charset="UTF-8" />
}

... and so on for the other pages.

Regards,

Michael


--
DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@dlconsulting.com
www.dlconsulting.com

HERNEBRING Patrick wrote:
I would like to know if it's possible to have a specific CSS style sheet for the pages where the document is displayed, and an another for the others pages (about page, help page, preference page, search and search results pages...)

What kind of test should I introduce in the collection macro (package style) ?

Any help ?


Patrick


Patrick Hernebring
Fonds musical ancien - Num□risation
Biblioth□que d'Etude et du Patrimoine
Biblioth□que de Toulouse
1 rue de P□rigord, 31000 Toulouse
T□l : 05 62 27 63 76

________________________________


_______________________________________________
greenstone-users mailing list
greenstone-users@list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://list.scms.waikato.ac.nz/mailman/private/greenstone-devel/attachments/20071228/45154783/attachment-0001.html