xowiki::Page instproc save_new (public)
<instance of xowiki::Page> 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 drafts [::xowiki::markdown_image::drafts [self]] if {[dict size $drafts] == 0} { set id [next] } else { set originals [::xowiki::markdown_image::prepare [self] $drafts] try { ::xo::dc transaction { set id [next] ::xowiki::markdown_image::attach [self] $drafts } } on error {message options} { dict for {slot value} $originals {:set $slot $value} return -options $options $message } } :check_unresolved_references return $idXQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)