| Hi Doug,
A few notes to Michael e-mail.
{If} expression is used in collect.cfg with "format" command.
expression is used in macro files (.dm)
expression1
Please note the quotes around macro also.
Where:
- expression1 will be render if a=q
- expression2 will be render if a is not = q
Expression1, expression2 should not contain ",)" characters
or they should escaped with "" character
Best regards,
Emanuel
-----Original Message-----
From: greenstone-devel-bounces@list.scms.waikato.ac.nz
[mailto:greenstone-devel-bounces@list.scms.waikato.ac.nz] On Behalf Of
Michael Dewsnip
Sent: Friday, January 21, 2005 5:33 AM
To: Doug Carter
Cc: Greenstone Mailing List
Subject: Re: [greenstone-devel] Detecting cgi arguments
Hi Doug,
You're on the right track. "d" will be set to the value of the "a"
cgi argument, so you can do
{If}{d, whatever}
or possibly even
{If}{d 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:
>
><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
>
>
>
_______________________________________________
greenstone-devel mailing list
greenstone-devel@list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel |