item::get_id (public, deprecated)

 item::get_id url [ root_folder ]

Defined in packages/acs-content-repository/tcl/deprecated-procs.tcl

Deprecated. Invoking this procedure generates a warning.

Parameters:
url (required)
The URL
root_folder (optional)
{default The Sitemap} The ID of the root folder to use for resolving the URL
Returns:
The item ID of the item at that URL, or the empty string on failure
See Also:

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc item::get_id

  # Strip off file extension
  set last [string last "." $url]
  if { $last > 0 } {
    set url [string range $url 0 $last-1]
  }

  if {$root_folder ne ""} {
    return [::content::item::get_id -item_path $url]
  } else {
    return [::content::item::get_id -item_path $url -root_folder_id $root_folder]
  }
Generic XQL file:
packages/acs-content-repository/tcl/deprecated-procs.xql

PostgreSQL XQL file:
packages/acs-content-repository/tcl/deprecated-procs-postgresql.xql

Oracle XQL file:
packages/acs-content-repository/tcl/deprecated-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: