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:

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: