[ic] capture_page cgi

Stefan Hornburg (Racke) racke at linuxia.de
Wed Mar 23 08:37:08 UTC 2011


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]

Regards
	Racke

-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team




More information about the interchange-users mailing list