xowiki::notification::get_url (private)
xowiki::notification::get_url id
Defined in packages/xowiki/tcl/notification-procs.tcl
- Parameters:
- id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: if {[::xo::dc 0or1row is_package_id { select 1 from apm_packages where package_id = :id}] } { # # the specified id is a package_id # set node_id [::xo::dc get_value get_node_id { select node_id from site_nodes where object_id = :id }] set url [site_node::get_url -node_id $node_id] return $url } if {[category::get_name $id] ne ""} { # # the specified id is a category_id # # if we would know the package_id here, we could return something like # /xowiki/weblog-portlet?summary=1&category_id=8380 # however, since we have only a category_id, which might be mapped to # multiple xowiki instances, we give up here. return /categories } # id is a revision_id return [::xowiki::url $id]XQL Not present: Generic, PostgreSQL, Oracle