xowiki::Package instproc item_ref (public)
<instance of xowiki::Package> item_ref \ [ -use_package_path use_package_path ] \ [ -use_site_wide_pages use_site_wide_pages ] \ [ -normalize_name normalize_name ] -default_lang default_lang \ -parent_id parent_id link
Defined in /var/www/openacs.org/packages/xowiki/tcl/package-procs.tcl
An item_ref refers to an item (existing or non-existing) in the content repository relative to some parent_id. The item might be either a folder or some kind of "page" (e.g. a file). An item_ref might be complex, i.e. consist of a path of simple_item_refs, separated by "/". An item_ref stops at the first unknown part in the path and returns item_id == 0 and the appropriate parent_id (and name etc.) for insertion.
- Switches:
- -use_package_path (optional, defaults to
"false"
)- -use_site_wide_pages (optional, defaults to
"false"
)- -normalize_name (optional, defaults to
"true"
)- -default_lang (required)
- -parent_id (required)
- Parameters:
- link (required)
- Returns:
- item info containing link_type form prefix stripped_name item_id parent_id
- Testcases:
- xowiki_test_cases, path_resolve