Re: [greenstone-devel] Detecting cgi arguments

From Michael Dewsnip
DateFri, 21 Jan 2005 16:33:23 +1300
Subject Re: [greenstone-devel] Detecting cgi arguments
In-Reply-To (20050120224833-GA22959-mercycorps-org)
Hi Doug,

You're on the right track. "_cgiarga_" will be set to the value of the
"a" cgi argument, so you can do

{If}{_cgiarga_, whatever}

or possibly even

{If}{_cgiarga_ eq "q", whatever}

All the best,

Michael

Doug Carter wrote:

>Hi all,
>
>I want to be able to output different text based on cgi arguments
>being passed. For example, if the url contains a=q, what is the
>corresponding _cgiarg_ macro.
>
>I'd like to be able to do something like:
>
>_If_(_cgiarg_, <insert some text>)
>
>If this is already documented, can someone point me in the right
>direction?
>
>TIA,
>
>Doug
>
>
>_______________________________________________
>greenstone-devel mailing list
>greenstone-devel@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>
>
>