[greenstone-users] CGI arguments

From Vladimir Risojevic
DateFri Feb 13 22:20:36 2009
Subject [greenstone-users] CGI arguments
In-Reply-To (000001c98d67$40a1e730$c1e5b590$-gov-ar)
Hi, Diego,

Thank you for your always prompt answer. At the moment I have this done
at per collection basis, as you suggested. However, I want to do it more
generally, because I think that the maintenance in the future will be
easier that way.

Regards,

Vladimir

Diego Spano wrote:
> Hi Vladimir,
>
> Did you try to put these lines in extra.dm file of each collection?
>
> ####extra.dm for book collection
> package Style
> /gsdl/web/style/style.css {/gsdl/web/images/book_style.css}
>
> ####extra.dm for pageparam collection
> package Style
> /gsdl/web/style/style.css {/gsdl/web/images/mag_style.css}
>
> This should work!.
>
> Diego
>
>
>
> -----Mensaje original-----
> De: greenstone-users-bounces@list.scms.waikato.ac.nz
> [mailto:greenstone-users-bounces@list.scms.waikato.ac.nz] En nombre de
> Vladimir R. Risojevic
> Enviado el: jueves, 12 de febrero de 2009 21:03
> Para: greenstone-users@list.scms.waikato.ac.nz
> Asunto: [greenstone-users] CGI arguments
>
> Dear all,
>
> I have two types of collections which use different stylesheets. Therefore I
> need some kind of a flag to distinguish between them. I defined a new page
> parameter:
>
> pageparam y book
>
> Then, I defined the corresponding cgi argument
>
> cgiarg shortname=y argdefault=book
>
> and in style.dm
>
> /gsdl/web/style/style.css[y=book] {/gsdl/web/images/book_style.css} /gsdl/web/style/style.css[y=mag]
> {/gsdl/web/images/mag_style.css}
>
> However, the value of my cgi argument was not maintained between pages so I
> tried adding savedarginfo=must to cgiarg. Now, after the first page of the
> collection I loose collection name, ie. it is missing in links and the
> collection is unusable.
> Is this the right way to do it? What am I missing? If I'm wrong, does
> anybody have any idea how to accomplish this custiomization?
>
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.0.234 / Virus Database: 270.10.23/1947 - Release Date: 02/11/09 18:11:00
>
>


--
Vladimir Risojevic
Teaching Assistant
Faculty of Electrical Engineering
University of Banjaluka
Patre 5
78000 Banjaluka
Bosnia and Herzegovina

Phone: +387 51 221 847, +387 51 221 876
Fax: +387 51 211 408
Email: vlado@etfbl.net
WWW: http://www.etfbl.net