Index: openacs-4/packages/acs-content-repository/tcl/content-item-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/tcl/content-item-procs.tcl,v diff -u -r1.10.2.3 -r1.10.2.4 --- openacs-4/packages/acs-content-repository/tcl/content-item-procs.tcl 22 Sep 2005 08:13:13 -0000 1.10.2.3 +++ openacs-4/packages/acs-content-repository/tcl/content-item-procs.tcl 26 Oct 2005 15:56:24 -0000 1.10.2.4 @@ -753,4 +753,18 @@ return $revision_id } +} + +ad_proc -public content::item::get_id_by_name { + {-name:required} + {-parent_id:required} +} { + Returns the item_id of the a content item with the passed in name + + @param name Name of the content item + @param parent_id Parent_id of the content item + + @return the item id belonging to the name, empty string if no item_id was found +} { + return [db_string get_item_id_by_name {} -default ""] } \ No newline at end of file