Functions and Directives

Directive #page directive Foundation

Controls page behaviour

<%#page layout=<filename> 
        inherits=<baseclass> %>

Using the #page directive, the behavior of a page can be customized. The table below shows the available page token/value pairs.

page tokens
Token Description
layout Defines the layout master file for this page
trace Enables/disables tracing output created via the :Trace() method for the debugger or the DebugView utility. The value must be specified as a string literal.
implements Allows changing the name of the page class. By default, the class name is derived from the filename of the cxp page.
inherits Allows overriding the base class of the page class. By default, CxpAbstractPage is used.

See the chapter Layout Managementfor an in-depth discussion of the "layout" token.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.