publish::foreach_publish_path (private)

 publish::foreach_publish_path url code [ root_path ]

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

Parameters:
url (required)
Relative URL to append to the roots
code (required)
Execute this code
root_path (optional)
{default The empty string} Use this root path instead of the paths specified in the INI file
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 publish::write_multiple_blobs publish::write_multiple_blobs (private) publish::foreach_publish_path publish::foreach_publish_path publish::write_multiple_blobs->publish::foreach_publish_path publish::write_multiple_files publish::write_multiple_files (private) publish::write_multiple_files->publish::foreach_publish_path template::util::is_nil template::util::is_nil (public) publish::foreach_publish_path->template::util::is_nil

Testcases:
No testcase defined.
Source code:
  if { ![template::util::is_nil root_path] } {
    set paths $root_path
  } else {
    # set paths [get_publish_roots]
    set paths "./"
  }

  upvar filename filename
  upvar current_page_root current_page_root

  foreach root_path $paths {
    ns_log debug "publish::foreach_publish_path: root_path: $root_path"
    set current_page_root $root_path
    set filename [ns_normalizepath "/$root_path/$url"]
    uplevel $code
  }
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: