content_search::url (private)

 content_search::url object_id

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

Provides a URL for linking to content items which show up in a search result set.

Parameters:
object_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 image_search::url image_search::url (private) content_search::url content_search::url image_search::url->content_search::url template_search::url template_search::url (private) template_search::url->content_search::url ad_url ad_url (public) content_search::url->ad_url apm_package_id_from_key apm_package_id_from_key (public) content_search::url->apm_package_id_from_key content::item::get_path content::item::get_path (public) content_search::url->content::item::get_path content::item::get_root_folder content::item::get_root_folder (public) content_search::url->content::item::get_root_folder db_string db_string (public) content_search::url->db_string

Testcases:
No testcase defined.
Source code:
    set package_id [apm_package_id_from_key acs-content-repository]
    set root_url [lindex [site_node::get_url_from_object_id -object_id $package_id] 0]

    set item_id [db_string get_item_id {
        select item_id from cr_revisions
        where revision_id = :object_id}]
    set root_folder_id [content::item::get_root_folder]
    set url [content::item::get_path  -item_id        $item_id  -root_folder_id $root_folder_id]

    return "[ad_url][string trimright $root_url /]$url?revision_id=$object_id"
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: