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

From Kuan-Yu(Jeffrey) Ke
DateThu, 21 Dec 2006 15:02:52 +1300
Subject Re: [greenstone-users] How can I change the size of the createdcollection's icons?
In-Reply-To (BAY135-F304B19E0C806B4132B9E38D6CF0-phx-gbl)
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