xo::PackageMgr instproc import_prototype_page (public)

 <instance of xo::PackageMgr[i]> 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 /var/www/openacs.org/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 (optional, defaults to "en")
-add_revision (optional, boolean, defaults to "true")
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.

Testcases:
xowiki_test_cases
[ show source ]
Show another procedure: