PageTableMap
Rename the columns used by the PageTables directive.
Synopsis
|
PageTableMap standard_column renamed_column
|
You can rename multiple columns at once
by using the Perl-style "here document" syntax,
as follows:
PageTableMap <<EOP
standard_column1 renamed_column1
standard_column2 renamed_column2
EOP
|
Scope
This directive is only available for use in the local
(catalog.cfg) configuration file.
It will not affect any other website in any way.
This directive will not work in the global
(interchange.cfg) configuration file.
Description
The PageTables directive expects to see tables
with particular column names.
You may use this PageTableMap directive to get Interchange
to use whatever column names you prefer.
The "standard_column", shown in the Synopsis,
above, may be one of the following:
- code
- page_text
- expiration_date
- show_date
- base_page
The "renamed_column" may be the name of any column that
is valid in your table.
Example
The following would make PageTables
look at the "page_name, "start_date" and
"end_date" columns,
instead of "base_code", "show_date and
"expiration_date" respectively.
PageTableMap <<EOP
base_code page_name
show_date start_date
expiration_date end_date
EOP
|