Re: [greenstone-devel] moving home icon

From Katherine Don
DateWed, 12 May 2004 11:59:46 +1200
Subject Re: [greenstone-devel] moving home icon
In-Reply-To (1b4566c1b4605c-1b4605c1b4566c-cwru-edu)
Hi Linda

There are several ways to accomplish this.

1. The navigation bar macro is defined by the runtime library - you can
modify the C++ code to add the home button in to the navigationbar
macro. Look at setnavbarmacros() in src/recpt/documentaction.cpp.

2. If you always have the same navigation bar i.e. the browse options
are fixed, you can define eg _mynavigationbar_ macro in, and
replace all references to SearchSubjectsFromDates in the other macro files with
_mynavigationbar_ . Use _icontabsearchgreen_ and _imagesearch_ macros
for the search button (clickable button and non-clickable image,
respectively), and _icontabTitlegreen_ and _imageTitle_ for the Title
button (and similarly for other metadata).

3. If the browse options differ for each collection, you can use the
predefined SearchSubjectsFromDates macro inside something else and add the home
button on the end.

eg, try something like this:
inside the

macro in add the following as the last
row in the table
<td colspan=2>
<table border="0" cellspacing = "0" cellpadding="0" width="100%>
<tr nowrap="nowrap">
<td nowrap="nowrap" > SearchSubjectsFromDates </td>
<td nowrap="nowrap" >_imagehome_</td>

You will need to remove the SearchSubjectsFromDates macro from the content of
each page (alternatively put the above in each content macro)
You will probably need to play with the images for the buttons and the
spacers so that the bar looks nice.
And play with the macro a bit so that this doesn't get used if you are
on the home page.

Well, I hope this gives you something to start from :-)

Katherine Don

Linda Cantara wrote:
> I have removed the 'help' and 'preferences' buttons from the top right of all pages, and
> would also like to remove the 'home' button from the homepage AND on the other pages,
> integrate 'home' into the navigation bar

> Are these two things possible and if so, how do I accomplish this?
> Thank you,
> Linda
> **********************************************
> Linda Cantara, Metadata Librarian
> 201G Kelvin Smith Library
> 11055 Euclid Avenue
> Case Western Reserve University
> Cleveland, Ohio 44106
> phone: 216-368-6504
> fax: 216-368-3669
> email:
> _______________________________________________
> greenstone-devel mailing list