Michael has given a clear solution to this issue. I forward it to you.
This is actually a lot harder than it should be, unfortunately.
You need to start by editing the macros/extra.dm file for your
macro to add the two links
collection and customising the
at the top of every page:
<!-- page banner (_style:pagebanner_) -->
<p class="bannerlinks">HOME HELP PREFERENCES</p>
<!-- end of page banner -->
<div style="float: right"><a href="...">English</a> | <a
href="...">Spanish</a></div><div style="clear: both"></div>
Now, what do you use for the links (the "..." bits)? All you need to do
is add "l=en" or "l=es" to the end of the current URL to change the
language, but Greenstone makes this difficult. The problem is that there
is no Greenstone macro (that I know of, anyway) that is set to the
current URL. So you can't just do something like
The other problem with this would be that if people clicked back and
forth between the two links the URLs would continue to get longer and
longer. (You may not care about this, as it doesn't affect the
When we were developing the PapersPast site, we got around these two
problems by customising the C++ code to set a macro to the current page
URL, but without the "l" argument, and used this. If you have experience
with C++ and compiling Greenstone then this might be an option for you.
function that edits the "location.href" variable to add the "l=es" or
"l=en" bits when the links are clicked. This wasn't an option for
DL Consulting Ltd
Greenstone Digital Library, Web Development, Hosting and Digitisation
> Hi List, I have the following problem, I need to change between 2
> and I test usin the macro _currenturl_ and it's just what I need, but for
> problem with my pc I lost all configurations and I don't remember how to
> Please I need to know the way tu apply this macro to an url to change
> between languages.
> Thank you and regards.
> Ra□l Barrera P.
> greenstone-users mailing list