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

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

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

This web-callable method displays the content of the clipboard. Finally redirect either to the return_url of the calling page.

Testcases:
No testcase defined.
Source code:
set clipboard [::xowiki::clipboard get]
if {$clipboard eq ""} {
  util_user_message -message "Clipboard empty"
} else {
  foreach item_id $clipboard {
    if {[::xo::db::CrClass get_instance_from_db -item_id $item_id] ne ""} {
      util_user_message -message [::$item_id pretty_link]
    } else {
      util_user_message -message "item $item_id deleted"
    }
  }
}
:return_redirect_without_params
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: