xo::db::CrFolder proc register_content_types (public)
xo::db::CrFolderregister_content_types -folder_id folder_id \ [ -content_types content_types ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/cr-procs.tcl
Register the specified content types for the folder. If a content_type ends with a *, include its subtypes
- Switches:
- -folder_id (required)
- -content_types (optional)
- Testcases:
- xowiki_test_cases
Source code: foreach content_type $content_types { set with_subtypes [expr {[regexp {^(.*)[*]$} $content_type _ content_type] ? "t" : "f"}] ::acs::dc call content_folder register_content_type -folder_id $folder_id -content_type $content_type -include_subtypes $with_subtypes }XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)