dir_subsite_info (public)

 dir_subsite_info

Defined in packages/directory/tcl/directory-procs.tcl

Return a list containing the subsite_id (lindex 0) and subsite_name (lindex 1) of the subsite that the current directory package is mounted under. The directory package does not need to be mounted directly under the subsite; it will find the closest instance of subsite than is an ancestor of the package.

Partial Call Graph (max 5 caller/called nodes):
%3 ad_conn ad_conn (public) subsite::get_element subsite::get_element (public) dir_subsite_info dir_subsite_info dir_subsite_info->ad_conn dir_subsite_info->subsite::get_element

Testcases:
No testcase defined.
Source code:
    set subsite_id [ad_conn subsite_id]
    set subsite_name [subsite::get_element -subsite_id $subsite_id -element $instance_name]
    
    return [list $subsite_id $subsite_name]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
<fullquery name="dir_subsite_info.n_id">
    <querytext>
      
        select node_id from site_nodes
        where object_id = :package_id
    
      </querytext>
</fullquery>
packages/directory/tcl/directory-procs.xql

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