xo::PackageMgr instproc import_prototype_page (public)
<instance of xo::PackageMgr> import_prototype_page \ [ -package_key package_key ] -name name -parent_id parent_id \ -package_id package_id [ -lang lang ] [ -add_revision on|off ]
Defined in packages/xotcl-core/tcl/06-package-procs.tcl
Import a named page from the prototypes folder of the package, i.e. under www/prototypes/*.page of the package.
- Switches:
- -package_key
(optional)- when provided, the package_key used to locate the page. When not provided, use the package_key of the class, on which this function is called.
- -name
(required)- name of the page to be loaded (not including the language prefix)
- -parent_id
(required)- place to where the page should be loaded
- -package_id
(required)- package instance to which the page should be loaded
- -lang
(defaults to"en"
) (optional)- -add_revision
(boolean) (defaults to"true"
) (optional)- When the page to be loaded exists already, add a new revision. When the page exists already, and the flag is not set, no change happens.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- xowiki_test_cases