Name

DOCROOT — filesystem path to catalog's document root

SYNOPSIS

{ path }

DESCRIPTION

This variable specifies filesystem path to the corresponding catalog's DOCROOT.

VARIABLE TYPE

Catalog variable

EXAMPLES

Example: Setting DOCROOT

Variable DOCROOT /var/www/CATALOG_NAME/htdocs/

NOTES

AVAILABILITY

DOCROOT is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: code/UserTag/button.tag
Line 38 (context shows lines 28-42)

my @js;
my $image;

my @from_html = qw/class id style/;

if($src) {
  if( $opt->{srcliteral} || $src =~ m{^https?://}i ) {
    $image = $src;
  }
  else {
    my $dr = $::Variable->{DOCROOT};
    my $id = $Tag->image( { dir_only => 1 } );
    $id =~ s:/+$::;
    $id =~ s:/~[^/]+::;


Source: code/SystemTag/image.tag
Line 123 (context shows lines 113-127)

      }
    }
  }
}
push @srclist, $sku if $sku;
push @srclist, $opt->{default} if $opt->{default};

if ($opt->{imagesubdir}) {
  $opt->{imagesubdir} .= '/' unless $opt->{imagesubdir} =~ m:/$:;
}
my $dr = $::Variable->{DOCROOT};
my $id = $imagedircurrent;
$id =~ s:/+$::;
$id =~ s:/~[^/]+::;


Source: code/SystemTag/captcha.coretag
Line 53 (context shows lines 43-57)

my $subdir = $opt->{image_subdir}
   || $::Variable->{CAPTCHA_IMAGE_SUBDIR}
   || 'captcha';
my $tmpdir = "$Vend::Cfg->{ScratchDir}/$subdir";

mkdir($tmpdir) unless -d $tmpdir;

my $imgdir = $opt->{image_location} || $::Variable->{CAPTCHA_IMAGE_LOCATION};

unless ($imgdir ) {
if(! $Global::NoAbsolute and $::Variable->{DOCROOT}) {
   $imgdir = "$::Variable->{DOCROOT}$::Variable->{IMAGE_DIR}/$subdir";
  }
  else {
     $imgdir = "images/$subdir";

AUTHORS

Interchange Development Group

SEE ALSO

CAPTCHA_IMAGE_SUBDIR(7ic), CAPTCHA_IMAGE_LOCATION(7ic), CAPTCHA_IMAGE_PATH(7ic)

DocBook! Interchange!