site_node::get_from_url (public)

 site_node::get_from_url -url url [ -exact ]

Defined in packages/acs-tcl/tcl/site-nodes-procs.tcl

Returns an array representing the site node that matches the given url. A trailing '/' will be appended to $url if required and not present. If the '-exact' switch is not present and $url is not found, returns the first match found by successively removing the trailing $url path component.

Switches:
-url (required)
-exact (optional, boolean)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_subsite_expose_bug_1144 acs_subsite_expose_bug_1144 (test acs-subsite) site_node::get_from_url site_node::get_from_url test_acs_subsite_expose_bug_1144->site_node::get_from_url test_front_page_1 front_page_1 (test acs-tcl) test_front_page_1->site_node::get_from_url test_xowiki_test_cases xowiki_test_cases (test xowiki) test_xowiki_test_cases->site_node::get_from_url attachments::get_attachments_url attachments::get_attachments_url (private) attachments::get_attachments_url->site_node::get_from_url boomerang::get_relevant_subsite boomerang::get_relevant_subsite (private) boomerang::get_relevant_subsite->site_node::get_from_url cookieconsent::get_relevant_subsite cookieconsent::get_relevant_subsite (private) cookieconsent::get_relevant_subsite->site_node::get_from_url install::xml::action::mount install::xml::action::mount (public) install::xml::action::mount->site_node::get_from_url install::xml::action::mount-existing install::xml::action::mount-existing (public) install::xml::action::mount-existing->site_node::get_from_url

Testcases:
acs_subsite_expose_bug_1144, front_page_1, xowiki_test_cases
Source code:
    # TODO: The switch "-exact" does nothing here... Needed?
    return [::acs::site_node get -node_id [::acs::site_node get_node_id -url $url]]
Generic XQL file:
packages/acs-tcl/tcl/site-nodes-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/site-nodes-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/site-nodes-procs-oracle.xql

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