publish::get_page_root (public)

 publish::get_page_root

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

Get the page root. All items will be published to the filesystem with their URLs relative to this root. The page root is controlled by the PageRoot parameter in CMS. A relative path is relative to $::acs::pageroot The default is $::acs::pageroot

Returns:
The page root
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 publish::get_publish_roots publish::get_publish_roots (public) publish::get_page_root publish::get_page_root publish::get_publish_roots->publish::get_page_root ad_conn ad_conn (public) publish::get_page_root->ad_conn parameter::get parameter::get (public) publish::get_page_root->parameter::get

Testcases:
No testcase defined.
Source code:
    # LARS TODO: This parameter doesn't exist, it's a remnant from the CMS package
    set root_path [parameter::get  -package_id [ad_conn package_id]  -parameter PageRoot]

    if { [string index $root_path 0] ne "/" } {
        # Relative path, prepend server_root
        set root_path "$::acs::pageroot/$root_path"
    }

    return [ns_normalizepath $root_path]
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: