xo::db::CrItem instproc rename (public)

 <instance of xo::db::CrItem[i]> rename -old_name old_name  \
    -new_name new_name 

Defined in packages/xotcl-core/tcl/cr-procs.tcl

Rename a content item

Switches:
-old_name
(required)
-new_name
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) xo::db::CrItem instproc rename xo::db::CrItem instproc rename test_create_form_with_form_instance->xo::db::CrItem instproc rename

Testcases:
create_form_with_form_instance
Source code:
set item_id ${:item_id}
::xo::dc dml update_rename  "update cr_items set name = :new_name where item_id = :item_id"
set :name $new_name
:update_item_index
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: