Class ::xo::Page

::xo::Page[i] create ...

Defined in

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xotcl::Object[i]

Methods (to be applied on the object)

  • get_property (scripted, public)

     xo::Page[i] get_property name

    Return the element and value pairs for a named page property, or an empty list.

    Parameters:
    name (required)
    Property name.

    Testcases:
    xowiki_test_cases, create_form_with_form_instance
  • header_stuff (scripted, public)

     xo::Page[i] header_stuff

    Add the registered styles, stylesheets, and scripts to the template head.

    Returns:
    The empty string.

    Testcases:
    xowiki_test_cases
  • requireCSS (scripted, public)

     xo::Page[i] requireCSS [ -order order ] name

    Register a stylesheet for the page head.

    Switches:
    -order (optional, defaults to "1")
    Relative order group for stylesheets.
    Parameters:
    name (required)
    Stylesheet URL.

    Testcases:
    create_workflow_with_instance, xowiki_test_cases, path_resolve
  • requireJS (scripted, public)

     xo::Page[i] requireJS name

    Register a JavaScript URL or inline statements for the page head. Repeated registrations retain their first position.

    Parameters:
    name (required)
    Script URL, or inline JavaScript containing a semicolon.

    Testcases:
    path_resolve
  • set_property (scripted, public)

     xo::Page[i] set_property name element value

    Store a value under an element of a named page property.

    Parameters:
    name (required)
    Property name.
    element (required)
    Element key.
    value (required)
    Value to store.

    Testcases:
    xowiki_test_cases, create_form_with_form_instance