publish::get_main_item_id (private)

 publish::get_main_item_id

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

Returns:
the main item id
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-templating/tcl/tag-init.tcl packages/acs-templating/ tcl/tag-init.tcl publish::get_main_item_id publish::get_main_item_id packages/acs-templating/tcl/tag-init.tcl->publish::get_main_item_id publish::get_main_revision_id publish::get_main_revision_id (private) publish::get_main_revision_id->publish::get_main_item_id template::util::is_nil template::util::is_nil (public) publish::get_main_item_id->template::util::is_nil

Testcases:
No testcase defined.
Source code:

  if { ![template::util::is_nil ::content::item_id] } {
    set ret $::content::item_id
  } else {
    error "Item id stack is empty"
  }

  return $ret
Generic XQL file:
packages/acs-content-repository/tcl/publish-procs.xql

PostgreSQL XQL file:
packages/acs-content-repository/tcl/publish-procs-postgresql.xql

Oracle XQL file:
packages/acs-content-repository/tcl/publish-procs-oracle.xql

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