For the complete documentation index, see llms.txt. This page is also available as Markdown.

Default Layout

Configure the default layout and fallback default view with the layoutSettings defaultLayout and defaultView directives.

Default Layout

The default layout in a ColdBox application is layouts/main.cfm by convention. You can change this by using the layoutSettings in your Coldbox.cfc.

//Layout Settings
layoutSettings = {
    defaultLayout = "basic.cfm"
}

Default View

There is no default view in ColdBox, but you can configure one by using the same layoutSettings configuration directive and the defaultView directive:

//Layout Settings
layoutSettings = {
    defaultLayout = "basic.cfm",
    defaultView   = "noview.cfm"
}

This means that if no view is set in the request context, ColdBox will fallback to this view for rendering.

Last updated

Was this helpful?