Re: [greenstone-devel] pageaction.cpp

From Michael Dewsnip
DateThu, 12 May 2005 14:37:25 +1200
Subject Re: [greenstone-devel] pageaction.cpp
In-Reply-To (6246807505050904503642cc9-mail-gmail-com)
Hi Allen,

> i am not really very proficient in c++, but i read in the archives
>that to change the _homeextra_ macro, you need to edit some c++ code
>in the source [and, i'm assuming, recompile it.] it seems it can be
>edited in pageaction.cpp.
> what we would want is to display the collection description ([which
>as i understand is defined by

This is a collection of email messages from the Greenstone mailing list archives. The collection includes _about:numdocs_ messages from the beginning of the mailing list in April 2000. It is updated nightly with new messages from the previous day. The mailing list is used for communicating with the entire Greenstone team, therefore the content of the messages is usually global in nature. The mailing list is also a good way of getting help with problems - someone on the team will probably be able to help you.

This collection may be useful for finding solutions to common problems, or simply for tracking the progress of the Greenstone software.

To subscribe to the Greenstone Users mailing list, please click here.

macro] <--is this
>right?) along side the collection image. so far, we have edited in
>the receptionist.cpp file the HomePageCols to be 1, and tried to
>declare and put into the formatting collectionextra in
>pageaction.cpp... so far, this has got us errors during make.
>could anyone give us some help here? it would be greatly appreciated.
Yes, you're right that changing _homeextra_ involves editing the C++
code, and what you describe sounds about right.

An easier alternative is to customise the macrofile instead of
the C++ code. Doing this allows you to customise the home page to show
whatever you want -- but it won't be as dynamic. For example, Greenstone
CD-ROMs have a customised home page with the 11 documented example
collections listed with an icon and a description. To achieve this, the


The requested page could not be found. Please use your browsers 'back' button or the above home button to return to the Greenstone Digital Library. macro in the was changed to include a bunch of HTML
for the table containing the icons and descriptions. You can see the
customised file here:

Of course, if you do it this way your home page becomes more static, and
you'll have to update it when your collections change. But it's a lot
simpler, and you don't have to touch the code.

If you'd rather go the C++ route, let me know and I'll look into it further.