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

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

Defined in /var/www/openacs.org/packages/xotcl-core/tcl/cr-procs.tcl

Rename a content item

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

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: