xowiki::Page instproc www-clipboard-add (public)

 <instance of xowiki::Page[i]> www-clipboard-add

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

This web-callable method adds elements to the clipboard based on the names provided by the form variable "objects". The objects are resolved below the current object, which is treated as containing folder. After adding elements to the clipboard, redirect either to the return_url of the calling page.

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.
Source code:
if {![:exists_form_parameter "objects"] && [ns_conn method] eq "POST"} {
  :msg "nothing to copy"
}

::xowiki::clipboard add [:get_ids_for_bulk_actions [:form_parameter objects]]
#
# When called via AJAX, we have reason to make a redirect.
#
if {[ns_set iget [ns_conn headers] "X-Requested-With"] eq "XMLHttpRequest"} {
  ns_log notice "HEADERS: got X-Requested-With"
  return OK
} else {
  #ns_log notice "HEADERS: no X-Requested-With"
  :return_redirect_without_params
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: