[ic] capture_page cgi
Peter
peter at pajamian.dhs.org
Wed Mar 23 04:14:23 UTC 2011
On 23/03/11 13:20, 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.
It could, but I find it easier to use wget when generating a static
version of the site. It can automatically crawl the site and will be
recognized as a bot (which you probably want when generating a static copy).
Peter
More information about the interchange-users
mailing list