publish::process_tag (private)
publish::process_tag relation_type params
Defined in packages/acs-content-repository/tcl/publish-procs.tcl
- Parameters:
- relation_type (required)
- Either child or relation
- params (required)
- The ns_set id for extra HTML parameters
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set tag [template::get_attribute content $params tag] set index [template::get_attribute content $params index 1] set embed [ns_set find $params embed] if { $embed != -1 } { set embed t } else { set embed f } set parent_item_id [ns_set iget $params parent_item_id] # Concatenate all other keys into the extra arguments list set extra_args [list] foreach {key value} [ns_set array $params] { if {$key ni {tag index embed parent_item_id}} { lappend extra_args $key $value } } # Render the item, append it to the page # set item_id [publish::get_main_item_id] set command "publish::render_subitem" append command " \[template::util::nvl \"$parent_item_id\" \$::content::item_id\]" append command " $relation_type $tag $index $embed" append command " \{$extra_args\}" template::adp_append_code "append __adp_output \[$command\]"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