Name

UI_COMPONENT_DIR —

SYNOPSIS

{ }

DESCRIPTION

VARIABLE TYPE

Catalog variable

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

UI_COMPONENT_DIR is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: dist/lib/UI/ContentEditor.pm
Line 1007 (context shows lines 997-1011 in get_content_dirs():991)

# look no farther
}
elsif($opt->{type} eq 'page') {
$dir = $Vend::Cfg->{PageDir};
}
else {
my $tdir  =  $opt->{template_dir}
      || $::Variable->{UI_TEMPLATE_DIR} || 'templates';
if($opt->{type} eq 'component') {
  $dir = $opt->{component_dir}
     || $::Variable->{UI_COMPONENT_DIR} || "$tdir/components";
}
  else {
    $dir = $tdir;
  }

Source: dist/lib/UI/ContentEditor.pm
Line 2333 (context shows lines 2323-2337 in write_component():2331)


sub write_template {
my ($record, $dest) = @_;
my $dir = $::Variable->{UI_TEMPLATE_DIR} || 'templates';
$dest ||= "$dir/$record->{code}";
Vend::Tags->write_relative_file($dest, $record->{temp_text});
}

sub write_component {
my ($record, $dest) = @_;
my $dir = $::Variable->{UI_COMPONENT_DIR} || 'templates/components';
$dest ||= "$dir/$record->{code}";
Vend::Tags->write_relative_file($dest, $record->{comp_text});
}


AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!