Skip to content

Overriding Roxy Options

paxtonhare edited this page May 31, 2012 · 3 revisions

OVERRIDING DEFAULTS

Several aspects of Roxy can be configured via XML. The default configuration values for Roxy are located in /src/roxy/config/defaults.xqy.

If you wish to override any of the values in defaults.xqy then you need to edit /src/app/config/config.xqy.

Simply include the xml elements you wish to override in $ROXY-OPTIONS.

EXAMPLES

Changing the default controller

declare variable $ROXY-OPTIONS :=
  <options>
    <default-controller>mycontroller</default-controller>
  </options>;

Changing the default controller and function

declare variable $ROXY-OPTIONS :=
  <options>
    <default-controller>mycontroller</default-controller>
    <default-function>myfunction</default-function>
  </options>;

Changing the layout to three column

declare variable $ROXY-OPTIONS :=
  <options>
    <default-layouts>
      <layout format="html">two-column</layout>
    </default-layouts>
  </options>;

Clone this wiki locally