Name

UI_TEMPLATE_DIR — location of the admin templates

SYNOPSIS

{ }

DESCRIPTION

The variable specifies the directory where the admin templates are kept.

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_TEMPLATE_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 1004 (context shows lines 994-1008 in get_content_dirs():991)

my $dir;

if($dir = $opt->{dir}) {
  # 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";
  }

Source: dist/lib/UI/ContentEditor.pm
Line 2326 (context shows lines 2316-2330 in write_template():2324)


sub write_page {
my ($record, $dest) = @_;
my $dir = $::Variable->{UI_PAGE_DIR} || 'pages';
$dest ||= "$dir/$record->{code}";
Vend::Tags->write_relative_file($dest, $record->{page_text});
}

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});
}


AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!