[ic] capture_page cgi

Sam Batschelet sbatschelet at me.com
Wed Mar 23 11:29:51 UTC 2011


On Mar 23, 2011, at 4:37 AM, Stefan Hornburg (Racke) wrote:

> On 03/23/2011 01:20 AM, Sam Batschelet wrote:
>> capture_page is a nice tool for generating static pages.  I use the scan feature of the tag to create static pages with search results.  To customize the static page creation I would like to pass cgi variables during the page creation.  For example I currently use something like:
>> 
>> [capture-page page="results.html" file="pages/static/foo_bar.html" umask="002" hide=1 scan="fi=products/st=db/co=1/sf=prod_group/se=foo/op=rm/nu=0/sf=category/se=bar/op=rm/nu=0/ml=50/tf=price/to=nr"]
>> 
>> Could the functionality of this tag be expanded to allow cgi variable injection into the static page creation?
>> 
>> [capture-page page="results.html" file="pages/static/foo_bar.html" umask="002" hide=1 scan="fi=products/st=db/co=1/sf=prod_group/se=foo/op=rm/nu=0/sf=category/se=bar/op=rm/nu=0/ml=50/tf=price/to=nr" cgi="foo_var=1&bar_var=2"]
>> 
>> Seems like it could I'm not a perl expert and would be willing to pay for the customization if possible.  Thanks in advance.
> 
> Did you try one of the following before [capture-page]:
> 
> [cgi name="foo_var" set="1" hide="1"]
> 
> [calc]
> $CGI->{foo_var} = 1;
> return;
> [/calc]


Perfect thank you Racke I had not tried that.



More information about the interchange-users mailing list