xowiki::Page instproc save_new (public)

 <instance of xowiki::Page[i]> save_new args [ args... ]

Defined in /var/www/openacs/packages/xowiki/tcl/xowiki-procs.tcl

Check whether the page can be saved under its parent, flush the page fragment cache, and delegate creation to the next method. Check unresolved references after saving.

Parameters:
args (required)
Arguments passed to the next save_new method.
Returns:
The identifier returned by the save operation.

Testcases:
nested_self_references
Source code:
if {![:can_save]} {error "can't save this page under this parent"}
${:package_id} flush_page_fragment_cache
set id [next]
:check_unresolved_references
return $id
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: