Index: openacs-4/packages/acs-content-repository/tcl/item-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/tcl/Attic/item-procs.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/acs-content-repository/tcl/item-procs.tcl 17 May 2003 09:43:54 -0000 1.6 +++ openacs-4/packages/acs-content-repository/tcl/item-procs.tcl 7 Jul 2003 12:25:53 -0000 1.7 @@ -77,15 +77,20 @@ } -ad_proc -public item::get_url { item_id } { +ad_proc -public item::get_url { + item_id + {-root_folder_id "null"} +} { @public get_url Retrieves the relative URL stub to th item. The URL is relative to the page root, and has no extension (Example: "/foo/bar/baz"). - @param item_id The item id - + @param item_id The item id + @param root_folder_id Starts path resolution from this folder. + Defaults to the root of the sitemap (when null). + @return The relative URL to the item, or an empty string on failure @see proc item::get_extended_url