RE: [greenstone-devel] pageaction.cpp

From Emanuel Dejanu
DateThu, 12 May 2005 11:30:02 +0300
Subject RE: [greenstone-devel] pageaction.cpp
In-Reply-To (4282C165-3080506-cs-waikato-ac-nz)
Hi Allen,

Our you can simply edit etc/main.cfg file and change the p parameter to go
to "about" page and "c" to point to your collection:

Exemple:

cgiarg shortname=p argdefault=about
cgiarg shortname=c argdefault=<your collection name>

And then you can modify about.dm to show what you want.


Best regards,

Emanuel Dejanu

-----Original Message-----
From: greenstone-devel-bounces&#64;list.scms.waikato.ac.nz
[mailto:greenstone-devel-bounces@list.scms.waikato.ac.nz] On Behalf Of
Michael Dewsnip
Sent: Thursday, May 12, 2005 5:37 AM
To: allen buenaflor
Cc: greenstone-devel@list.scms.waikato.ac.nz
Subject: Re: [greenstone-devel] pageaction.cpp

Hi Allen,

>help!
> 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 home.dm 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

oops

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
home.dm was changed to include a bunch of HTML for the table containing the
icons and descriptions. You can see the customised home.dm file here:
http://www.cs.waikato.ac.nz/~mdewsnip/greenstone/temp/home.dm.

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.

Regards,

Michael


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