[ic] Default file in pages subdir

Steve Graham interchange-users@icdevgroup.org
Thu Aug 1 19:05:01 2002


>From: "Jonathan Clark" <jonc@webmaint.com>
>
>I guess the way round this is to knock up a quick global usertag to do the
>file check:
>
>
>UserTag isdir Order path
>UserTag isdir Routine <<EOR
>sub {
>         my ($path) = @_;
>         return -d $path;
>}
>EOR
>
>and then the following autoload:
>
>
>Autoload <<EOS
>[perl]
>      $url = $Session->{last_url};
>
>      if ($Tag->isdir({path =>
>"/home/icdemo.webmaint.net/interchange/pages/$url"})){
>          $CGI->{mv_nextpage} = "$url/index.html";
>      }
>[/perl]
>EOS
>
>
>
>Tested and working :-) see
>http://icdemo.webmaint.net/cgi-bin/foundation_demo/test/index.html
>http://icdemo.webmaint.net/cgi-bin/foundation_demo/test/
>
>
>Now.. if I just new how to remove the hard-coded path in the Autoload...
>
>Jonathan
>Webmaint.

Thanks, now maybe the search engines will be happy again.....!

Best regards,
Steve


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx