Re: [greenstone-users] How can I change the size of the created collection's icons?

From César López Molero
DateThu, 21 Dec 2006 08:15:47 +0000
Subject Re: [greenstone-users] How can I change the size of the created collection's icons?
In-Reply-To (4589EB4C-6070802-dlconsulting-com)

Thank you


From: "Kuan-Yu(Jeffrey) Ke" <jeffrey@dlconsulting.com>
Reply-To: greenstone-users@list.scms.waikato.ac.nz
To: C□sar L□pez Molero <clmolero@hotmail.com>, greenstone-users@list.scms.waikato.ac.nz
Subject: Re: [greenstone-users] How can I change the size of the created collection's icons?
Date: Thu, 21 Dec 2006 15:02:52 +1300

Hi C□sar,

Unfortunately the width of the collection's icons in the home page are hard coded in Greenstone, and you will not be able to change it by only using macro files.

If you can recompile your Greenstone, here is the place you need to change.

In pageaction.cpp: go to the home_images function (about line 284) and you will find
collectionname = "<img width="150" src="" + iconurl + "" alt="" + alt + "">";


Change it to
collectionname = "<img width="300" src="" + iconurl + "" alt="" + alt + "">";


Recompile the library cgi executable and it should work.
For your reference, the version I am using is the latest Greenstone from CVS.

Hope this will help,
Cheers,
Jeffrey


C□sar L□pez Molero wrote:
Hello:
 
I've read the tutorial http://greenstone.sourceforge.net/wiki/gsdoc/tutorial/en/using_macro_files.htm because I want to customize my Collection page, But the icons of the created collections in the home page are very small (150X38 pixels), How can I change this to, for example, (300X68)?
 
Thank you


□xitos, grandes cl□sicos y novedades. Un mill□n de canciones en MSN Music.

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




Excursiones y escapadas a sitios m□gicos. No te lo pierdas en MSN Entretenimiento