item::get_extended_url (public, deprecated)

 item::get_extended_url item_id [ args... ]

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

Deprecated. Invoking this procedure generates a warning.

Retrieves the relative URL of the item with a file extension based on the item's mime_type (Example: "/foo/bar/baz.html").

Parameters:
item_id (required)
The item id
Options:
-template_extension
Signifies that the file extension should be retrieved using the mime_type of the template assigned to the item, not from the item itself. The live revision of the template is used. If there is no template which could be used to render the item, or if the template has no live revision, the extension defaults to ".html"
-revision_id
{default the live revision} Specifies the revision_id which will be used to retrieve the item's mime_type. This option is ignored if the -template_extension option is specified.
Returns:
The relative URL of the item with the appropriate file extension or an empty string on failure
See Also:
  • proc item::get_url
  • proc item::get_mime_info
  • proc item::get_template_id

Testcases:
No testcase defined.
[ show source ]
Show another procedure: