Pragmas are used to control various aspects of page and data parsing and display. They are processed before an Interchange page goes to the normal processing routine.
Pragma values can be defined at any level; catalog-wide, page-wide or ITL-block wide.
![]() | Note |
---|---|
Catalog-wide pragmas are equivalent to inserting |
To define a pragma catalog-wide, use the Pragma
directive in catalog.cfg
:
PragmaNAME
[=value
]
To define a pragma for a particular page, use the pragma
tag anywhere on a page. For readability, however, we suggest to always
define pragmas at the top.
The following two lines, of which you would
usually use only one at a time, present pragma activation and deactivation:
[pragmaNAME
] [pragmaNAME
0]
To define a pragma for an ITL block inside the page, enclose the
block in [tag pragma ...]
:
[tag pragmaNAME
]1[/tag] ... [tag pragmaNAME
]0[/tag]
Starting with Interchange 5.0, the $::Pragma->{
syntax
is used in the Interchange source, instead of the old
NAME
}$Vend::Cfg->{Pragma}{
.
NAME
}
See the list of available pragmas in Interchange Reference Pages: Pragmas.