Name

PageDir — specify directory containing catalog pages

SYNOPSIS

directory_name

DESCRIPTION

Specify the directory containing catalog pages. The default for this directive is pages.

Speaking of internationalization, it can be useful to set this directive to different values, depending on current locale.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Setting PageDir

PageDir html

Example: Setting PageDir depending on current locale

To use a different page directory for different locales, say French and English, help yourself with the robust Locale directive:

# Establish the default at startup
PageDir   english

# Establish locale-dependent directories
Locale fr_FR  PageDir  francais
Locale en_US  PageDir  english

To fully understand the example and implicitly presented Interchange features, make sure you're familiar with internationalization and locale glossary entries.


NOTES

The specified location is always treated relative to CATROOT.

AVAILABILITY

PageDir is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 544

['PageDir',          'relative_dir',     'pages'],

Source: lib/Vend/Config.pm
Line 3975 (context shows lines 3975-3989)

sub parse_relative_dir {
my($var, $value) = @_;

if (absolute_or_relative($value)) {
  config_error('Path %s not allowed in %s directive',
          $value, $var);
}

$C->{Source}{$var} = $value;

$value = "$C->{VendRoot}/$value"
  unless file_name_is_absolute($value);
$value =~ s./+$..;
$value;
}

AUTHORS

Interchange Development Group

SEE ALSO

RunDir(7ic), Locale(7ic), ScratchDir(7ic)

DocBook! Interchange!