OpenACS Content Repository

The canonical repository for OpenACS content. This package provides the API for creating and managing user generated content including full support for versioning, rendering content to the filesystem, folders and composite content items, and other CMS backing functionality. Utilized by Bug Tracker, File Storage, and other packages.

 

Package Documentation

Procedure Files

tcl/acs-content-repository-callback-procs.tcl       Callback procs for acs-content-repository 
tcl/acs-content-repository-procs.tcl       Callback procs for acs-content-repository 
tcl/apm-callback-procs.tcl       APM callbacks library 
tcl/content-extlink-procs.tcl       Procedures for content_extlink 
tcl/content-folder-procs.tcl       Tcl API for content_folders 
tcl/content-item-procs.tcl       Tcl API for cr_items in the content repository 
tcl/content-keyword-procs.tcl       Procedures for content_keywords 
tcl/content-permission-procs.tcl       These should probably just use the regular old permission procedures 
tcl/content-procs.tcl       Functions that the content-repository uses to interact with the file system. 
tcl/content-revision-procs.tcl       Procedures to manipulate content revisions 
tcl/content-symlink-procs.tcl       Procedures for content symlink 
tcl/content-template-procs.tcl       Procudures for content template 
tcl/content-type-procs.tcl       Procedures for content types 
tcl/doc-procs.tcl       Procedures for content types 
tcl/extlink-procs.tcl       Manage external links in the content repository 
tcl/filter-procs.tcl       Manage external links in the content repository 
tcl/folder-procs.tcl       Procedures in the folder namespace related to content folders. 
tcl/image-procs.tcl       Procedures to handle image subtype Image magick handling procedures inspired and borrowed from photo-album and imagemagick packages 
tcl/item-procs.tcl       Procedures to handle image subtype Image magick handling procedures inspired and borrowed from photo-album and imagemagick packages 
tcl/keyword-procs.tcl       Procs for manipulating keywords. 
tcl/publish-procs.tcl       Procs for manipulating keywords. 
tcl/revision-procs.tcl       Procs for manipulating keywords. 
tcl/search-procs.tcl       Procs for manipulating keywords. 
tcl/symlink-procs.tcl       Manage external links in the content repository 

Procedures

callback::subsite::parameter_changed::impl::acs-content-repository       Implementation of subsite::parameter_changed for acs-content-repository. 
content::apm::after_upgrade       APM callback executed on package upgrade. 
content::deploy       render the template and write it to the file system with template::util::write_file 
content::extlink::copy        
content::extlink::delete        
content::extlink::edit       Edit an existing external link. 
content::extlink::is_extlink        
content::extlink::name       Returns the name of an extlink 
content::extlink::new        
content::folder::delete       Delete a content folder 
content::folder::get_folder_from_package        
content::folder::get_folder_from_package_not_cached        
content::folder::get_index_page        
content::folder::get_label        
content::folder::is_empty        
content::folder::is_folder        
content::folder::is_registered        
content::folder::is_root        
content::folder::is_sub_folder        
content::folder::new        
content::folder::register_content_type       Register an allowed content type for folder_id 
content::folder::unregister_content_type       Unregister an allowed content type for folder_id 
content::folder::update       Update standard cr_folder attributes, including the attributes for the folder cr_item 
content::get_content       sets the content in the array "content" in the callers scope assumes item_id or revision_id is set in the ::content namespace. 
content::get_content_value        
content::get_folder_labels       Set a data source in the calling frame with folder URL and label Useful for generating a context bar. 
content::get_item_id        
content::get_template_root       Find the directory in the file system where templates are stored. 
content::get_template_url        
content::has_content       return true if the request has content associated with it 
content::init       Initialize the namespace variables for the ::content procs and figures out which template to use and set up the template for the required content type etc. 
content::item::content_is_null       Determines if the content for the revision is null (not mereley zero-length) 
content::item::content_methods_by_type       Determines all the valid content methods for instantiating a content type. 
content::item::content_type        
content::item::copy        
content::item::delete        
content::item::get        
content::item::get_best_revision       Attempts to retrieve the live revision for the item. 
content::item::get_content       Create a onerow datasource called content in the calling frame which contains all attributes for the revision (including inherited ones).<p> The datasource will contain a column called "text", representing the main content (blob) of the revision, but only if the revision has a textual mime-type. 
content::item::get_content_type       Retrieves the content type of the item. 
content::item::get_context        
content::item::get_id       Looks up the item_path starting with the root folder and returns item_id for that content item or empty, if none exists 
content::item::get_id_by_name       Returns The item_id of the a content item with the passed in name 
content::item::get_latest_revision       Retrieves the latest revision for the item. 
content::item::get_live_revision       Retrieves the live revision for the item. 
content::item::get_parent_folder        
content::item::get_path        
content::item::get_publish_date        
content::item::get_publish_status       Get the publish status of the item. 
content::item::get_revision_content       Create a onerow datasource called content in the calling frame which contains all attributes for the revision (including inherited ones). 
content::item::get_revision_count        
content::item::get_root_folder        
content::item::get_template       Retrieves the template which can be used to render the item. 
content::item::get_title       Get the title for the item. 
content::item::get_virtual_path       Retrieves the relative path to the item. 
content::item::is_index_page        
content::item::is_publishable       Determine if the item is publishable. 
content::item::is_published        
content::item::is_subclass        
content::item::is_valid_child        
content::item::move        
content::item::new        
content::item::publish       Publish a content item. 
content::item::register_template        
content::item::relate        
content::item::rename        
content::item::set_live_revision        
content::item::set_release_period        
content::item::unpublish       Unpublish a content item. 
content::item::unregister_template        
content::item::unrelate        
content::item::unset_live_revision        
content::item::update       Update standard non-versioned content item attributes (cr_items) Valid attributes: name parent_id latest_revision live_revision locale publish_status 
content::item::upload_file       Store the file uploaded under the parent_id if a file was uploaded 
content::keyword::delete        
content::keyword::get_children       Returns the ids of the keywords having the given parent_id. 
content::keyword::get_description        
content::keyword::get_heading        
content::keyword::get_keyword_id       Get the keyword with the given heading under the given parent. 
content::keyword::get_options_flat       Returns a flat options list of the keywords with the given parent_id. 
content::keyword::get_path        
content::keyword::is_assigned        
content::keyword::is_leaf        
content::keyword::item_assign        
content::keyword::item_get_assigned       Returns a list of all keywords assigned to the given cr_item. 
content::keyword::item_unassign        
content::keyword::item_unassign_children       Unassign all the keywords attached to a content item that are children of keyword parent_id. 
content::keyword::new        
content::keyword::set_description        
content::keyword::set_heading        
content::keyword::write_to_file        
content::permission::cm_admin_exists        
content::permission::grant_permission        
content::permission::grant_permission_h        
content::permission::has_grant_authority        
content::permission::has_revoke_authority        
content::permission::inherit_permissions        
content::permission::permission_p        
content::permission::revoke_permission        
content::permission::revoke_permission_h        
content::revision::content_copy        
content::revision::copy        
content::revision::delete        
content::revision::export_xml        
content::revision::get_cr_file_path       Get the path to content in the filesystem 
content::revision::get_number        
content::revision::import_xml        
content::revision::index_attributes        
content::revision::is_latest        
content::revision::is_live        
content::revision::item_id       Gets the item_id of the item to which the revision belongs. 
content::revision::new       Adds a new revision of a content item. 
content::revision::read_xml        
content::revision::replace        
content::revision::revision_name        
content::revision::to_html        
content::revision::to_temporary_clob        
content::revision::update_attribute_index        
content::revision::update_content       Update content column seperately. 
content::revision::write_xml        
content::symlink::copy        
content::symlink::delete        
content::symlink::is_symlink        
content::symlink::new       This procedure allows you to create a new Symlink 
content::symlink::resolve       Return the item_id of the target item to which the symlink points 
content::symlink::resolve_content_type        
content::template::delete        
content::template::get_path        
content::template::get_root_folder        
content::template::is_template        
content::template::new        
content::type::attribute::delete        
content::type::attribute::new        
content::type::content_type_p       Checks if the mime_type is of the content_type, e.g if application/pdf is of content_type "image" (which it should not...) Cached 
content::type::content_type_p_not_cached       Checks if the mime_type is of the content_type, e.g if application/pdf is of content_type "image" (which it should not...) 
content::type::delete        
content::type::get_template        
content::type::is_content_type        
content::type::new        
content::type::refresh_view        
content::type::register_child_type        
content::type::register_mime_type       Associate a content_type with a mime_type (both params are strings, e.g. 
content::type::register_relation_type        
content::type::register_template        
content::type::rotate_template       Force all items of content_type to use a new template. 
content::type::set_default_template        
content::type::unregister_child_type        
content::type::unregister_mime_type        
content::type::unregister_relation_type        
content::type::unregister_template        
content_extlink::delete       Delete an external link. 
content_extlink::edit       Edit an existing external link. 
content_extlink::extlink_name       Returns the name of an extlink 
content_extlink::extlink_p       Returns true if the given item is an external link. 
content_extlink::new       Create a new external link. 
content_search__datasource       Provides data source for search interface. 
content_search__search_ids       Returns the object ids for a specified search. 
content_search__url       Provides a url for linking to content items which show up in a search result set. 
content_symlink::delete       Delete an external link. 
content_symlink::edit       Edit an existing internal link. 
content_symlink::new       Create a new internal link. 
content_symlink::resolve        
content_symlink::resolve_content_type        
content_symlink::symlink_name       Returns the name of an symlink 
content_symlink::symlink_p       Returns true if the given item is a symlink 
cr::keyword::delete       Delete a keyword. 
cr::keyword::get_children       Returns the ids of the keywords having the given parent_id. 
cr::keyword::get_keyword_id       Get the keyword with the given heading under the given parent. 
cr::keyword::get_options_flat       Returns a flat options list of the keywords with the given parent_id. 
cr::keyword::item_assign       Assign one or more keywords to a content_item. 
cr::keyword::item_get_assigned       Returns a list of all keywords assigned to the given cr_item. 
cr::keyword::item_unassign       Unassign a single keyword from a content item. 
cr::keyword::item_unassign_children       Unassign all the keywords attached to a content item that are children of keyword parent_id. 
cr::keyword::new       Create a new keyword 
cr::keyword::set_heading       Update a keyword heading 
cr_check_orphaned_files       Check for orphaned files in the content respository directory, and delete such files if required. 
cr_cleanup_orphaned_files       Helper proc to cleanup orphaned files in the content repository. 
cr_count_file_entries       Count the number of entries from the content repository having the specified partial path their content field. 
cr_create_content_file       Copies the file passed by client_filename to the content repository file storage area, and it returns the relative file path from the root of the content repository file storage area.. 
cr_create_content_file_from_string       Copies the string to the content repository file storage area, and it returns the relative file path from the root of the content repository file storage area. 
cr_create_mime_type       Creates a mime type if it does not exist. 
cr_file_size       Returns the size of a file stored in the content repository. 
cr_filename_to_mime_type       given a filename, returns the mime type. 
cr_fs_path       Root path of content repository files. 
cr_import_content       Import an uploaded file into the content repository. 
cr_registered_type_for_mime_type       Return the type registered for this mime type. 
cr_set_imported_content_live        
cr_write_content       Write out the specified content to the current HTML connection or return it to the caller by using the -string flag. 
doc::func_list       Return a list of all the function creation headers in a package, in form { value value ... 
doc::func_multirow       Return a multirow datatsource for all the functions { value value ... 
doc::get_proc_doc       Query the database and prepare the datasources The user should call this procedure 
doc::get_proc_header       Retreive the function header for a specific function and parse out the javadoc comment. 
doc::package_info       Set up a data source with overall package info (overview, see also, etc.) 
doc::package_list       Return a list of all the packages in the data model, in form { {label value} {label value} ... 
doc::parse_proc_header       Parse the header block and prepare the datasources: Prepare a multirow datasource for the param tags Prepare a onerow datasource for all the other tags 
folder::delete       Deprecated. 
image::convert_binary       Find imagemagick convert binary 
image::filename_mime_type       Use ns_guesstype if we don't know the mime_type 
image::get_file_dimensions       Get the width and height of an image from a file in the filesystem. 
image::get_file_info       Get info about an image file, dimensions, mime_type The name of this proc tries to make clear that we aren't getting info for an image type object, but examinging an image file in the filesystem 
image::get_file_info_array       Get info about an image file, dimensions, mime_type into an array in the caller's namespace. 
image::get_resized_item_id       Get the item id of a related resized image, usually the thumbnail size 
image::get_size_item_id       Get the item_id of a resized version of an image 
image::identify_binary       Find imagemagick identify binary 
image::imagemagick_file_dimensions       Get the dimensions of an image from imagemagick 
image::imagemagick_identify       Get width height and mime type from imagemagick 
image::mime_type       Use ns-built-in mimetype or image magick if not available 
image::new       Create a new image object from a temporary file 
image::ns_size       Use ns_gifsize/ns_jpegsize to try to get the size of an image 
image::resize       Create a thumbnail of an image in the content repository 
image_search__datasource       Provides data source for search interface. 
image_search__url       Provides a url for linking to content items which show up in a search result set. 
item::content_is_null        
item::content_methods_by_type        
item::copy       Copy the given item. 
item::delete       Delete a content item from the database. 
item::get       Get information about a content item. 
item::get_best_revision        
item::get_content        
item::get_content_type        
item::get_element       Return the value of a single element (attribute) of a content item. 
item::get_extended_url       Retrieves the relative URL of the item with a file extension based on the item's mime_type (Example: "/foo/bar/baz.html"). 
item::get_id        
item::get_item_from_revision        
item::get_latest_revision       Retrieves the latest revision for the item. 
item::get_live_revision        
item::get_mime_info        
item::get_publish_status        
item::get_revision_content        
item::get_template_id        
item::get_template_url        
item::get_title        
item::get_type       Returns the content type of the specified item, or empty string if the item_id is invalid 
item::get_url        
item::is_publishable       Determine if the item is publishable. 
item::publish       Publish a content item. 
item::unpublish       Unpublish a content item. 
publish::get_html_body        
publish::get_mime_handler        
publish::get_page_root       Get the page root. 
publish::get_publish_roots       Get a list of all page roots to which files may be published. 
publish::handle::image       The basic image handler. 
publish::handle::text       Return the text body of the item 
publish::handle_binary_file        
publish::item_include_tag        
publish::mkdirs       Create all the directories neccessary to save the specified file 
publish::proc_exists        
publish::render_subitem        
publish::write_content        
template_search__datasource       Provides data source for search interface. 
template_search__url       Provides a url for linking to content items which show up in a search result set. 

SQL Files

sql/common/mime-type-data.sql        
sql/common/upgrade/upgrade-5.3.0b1-5.3.0b2.sql        
sql/common/upgrade/upgrade-5.9.0b2-5.9.0b3.sql        
sql/postgresql/acs-content-repository-create.sql        
sql/postgresql/content-create.sql        
sql/postgresql/content-drop.sql        
sql/postgresql/content-extlink.sql        
sql/postgresql/content-folder.sql        
sql/postgresql/content-image-drop.sql        
sql/postgresql/content-image.sql        
sql/postgresql/content-item.sql        
sql/postgresql/content-keyword.sql        
sql/postgresql/content-package.sql        
sql/postgresql/content-perms.sql        
sql/postgresql/content-revision.sql        
sql/postgresql/content-schedule.sql        
sql/postgresql/content-search.sql        
sql/postgresql/content-symlink.sql        
sql/postgresql/content-template.sql        
sql/postgresql/content-test.sql        
sql/postgresql/content-type.sql        
sql/postgresql/content-update.sql        
sql/postgresql/content-util.sql        
sql/postgresql/content-xml.sql        
sql/postgresql/datatype-upgrade.sql        
sql/postgresql/doc-package.sql        
sql/postgresql/packages-create.sql        
sql/postgresql/types-create.sql        
sql/postgresql/types-drop.sql        
sql/postgresql/upgrade/upgrade-4.1-4.1.2.sql        
sql/postgresql/upgrade/upgrade-4.1.2-4.5.sql        
sql/postgresql/upgrade/upgrade-4.5-4.6.sql        
sql/postgresql/upgrade/upgrade-4.6-4.6.1.sql        
sql/postgresql/upgrade/upgrade-4.6.1-4.6.2.sql        
sql/postgresql/upgrade/upgrade-4.6.2-4.6.3.sql        
sql/postgresql/upgrade/upgrade-4.6.3-4.6.4.sql        
sql/postgresql/upgrade/upgrade-4.6.4-4.6.5.sql        
sql/postgresql/upgrade/upgrade-4.6.5-4.7d6.sql        
sql/postgresql/upgrade/upgrade-4.7d1-4.7d6.sql        
sql/postgresql/upgrade/upgrade-5.0.0-5.1.0d1.sql        
sql/postgresql/upgrade/upgrade-5.0.0b3-5.0.0b4.sql        
sql/postgresql/upgrade/upgrade-5.0.0b4-5.0.0b5.sql        
sql/postgresql/upgrade/upgrade-5.0d1-5.0d2.sql        
sql/postgresql/upgrade/upgrade-5.0d2-5.0d3.sql        
sql/postgresql/upgrade/upgrade-5.1.0d2-5.1.0d3.sql        
sql/postgresql/upgrade/upgrade-5.1.1d1-5.1.1d2.sql        
sql/postgresql/upgrade/upgrade-5.1.1d2-5.1.1d3.sql        
sql/postgresql/upgrade/upgrade-5.1.2d1-5.1.2d2.sql        
sql/postgresql/upgrade/upgrade-5.1.2d2-5.1.2d3.sql        
sql/postgresql/upgrade/upgrade-5.1.2d4-5.1.2d5.sql        
sql/postgresql/upgrade/upgrade-5.1.2d6-5.1.2d7.sql        
sql/postgresql/upgrade/upgrade-5.1.4d1-5.1.4d2.sql        
sql/postgresql/upgrade/upgrade-5.1.4d2-5.1.4d3.sql        
sql/postgresql/upgrade/upgrade-5.1.4d3-5.1.4d4.sql        
sql/postgresql/upgrade/upgrade-5.1.4d4-5.1.4d5.sql        
sql/postgresql/upgrade/upgrade-5.1.4d5-5.1.4d6.sql        
sql/postgresql/upgrade/upgrade-5.1.4d6-5.1.4d7.sql        
sql/postgresql/upgrade/upgrade-5.1.5d1-5.1.5d2.sql        
sql/postgresql/upgrade/upgrade-5.1.5d3-5.1.5d4.sql        
sql/postgresql/upgrade/upgrade-5.2.0a1-5.2.0a2.sql        
sql/postgresql/upgrade/upgrade-5.2.0a2-5.2.0a3.sql        
sql/postgresql/upgrade/upgrade-5.2.0a3-5.2.0a4.sql        
sql/postgresql/upgrade/upgrade-5.2.0b1-5.2.0b2.sql        
sql/postgresql/upgrade/upgrade-5.2.0b2-5.2.0b3.sql        
sql/postgresql/upgrade/upgrade-5.2.0b5-5.2.0b6.sql        
sql/postgresql/upgrade/upgrade-5.2.0b6-5.2.0b7.sql        
sql/postgresql/upgrade/upgrade-5.2.0b9-5.2.0b10.sql        
sql/postgresql/upgrade/upgrade-5.2.0d1-5.2.0d2.sql        
sql/postgresql/upgrade/upgrade-5.2.0d10-5.2.0d11.sql        
sql/postgresql/upgrade/upgrade-5.2.0d11-5.2.0d12.sql        
sql/postgresql/upgrade/upgrade-5.2.0d12-5.2.0d13.sql        
sql/postgresql/upgrade/upgrade-5.2.0d13-5.2.0d14.sql        
sql/postgresql/upgrade/upgrade-5.2.0d14-5.2.0d15.sql        
sql/postgresql/upgrade/upgrade-5.2.0d15-5.2.0d16.sql        
sql/postgresql/upgrade/upgrade-5.2.0d16-5.2.0d17.sql        
sql/postgresql/upgrade/upgrade-5.2.0d17-5.2.0d18.sql        
sql/postgresql/upgrade/upgrade-5.2.0d18-5.2.0d19.sql        
sql/postgresql/upgrade/upgrade-5.2.0d2-5.2.0d3.sql        
sql/postgresql/upgrade/upgrade-5.2.0d3-5.2.0d4.sql        
sql/postgresql/upgrade/upgrade-5.2.0d4-5.2.0d5.sql        
sql/postgresql/upgrade/upgrade-5.2.0d5-5.2.0d6.sql        
sql/postgresql/upgrade/upgrade-5.2.0d6-5.2.0d7.sql        
sql/postgresql/upgrade/upgrade-5.2.0d7-5.2.0d8.sql        
sql/postgresql/upgrade/upgrade-5.2.0d8-5.2.0d9.sql        
sql/postgresql/upgrade/upgrade-5.2.0d9-5.2.0d10.sql        
sql/postgresql/upgrade/upgrade-5.2.1d1-5.2.1d2.sql        
sql/postgresql/upgrade/upgrade-5.3.0b1-5.3.0b2.sql        
sql/postgresql/upgrade/upgrade-5.3.0b2-5.3.0b3.sql        
sql/postgresql/upgrade/upgrade-5.3.0d1-5.3.0d2.sql        
sql/postgresql/upgrade/upgrade-5.3.0d2-5.3.0d3.sql        
sql/postgresql/upgrade/upgrade-5.3.0d3-5.3.0d4.sql        
sql/postgresql/upgrade/upgrade-5.3.0d7-5.3.0d8.sql        
sql/postgresql/upgrade/upgrade-5.4.0d3-5.4.0d4.sql        
sql/postgresql/upgrade/upgrade-5.4.0d4-5.4.0d5.sql        
sql/postgresql/upgrade/upgrade-5.4.0d6-5.4.0d7.sql        
sql/postgresql/upgrade/upgrade-5.4.0d7-5.4.0d8.sql        
sql/postgresql/upgrade/upgrade-5.4.0d8-5.4.0d9.sql        
sql/postgresql/upgrade/upgrade-5.4.1d1-5.4.1d2.sql        
sql/postgresql/upgrade/upgrade-5.4.2d1-5.4.2d2.sql        
sql/postgresql/upgrade/upgrade-5.5.0d1-5.5.0d2.sql        
sql/postgresql/upgrade/upgrade-5.5.0d2-5.5.0d3.sql        
sql/postgresql/upgrade/upgrade-5.5.0d3-5.5.0d4.sql        
sql/postgresql/upgrade/upgrade-5.6.0d2-5.6.0d3.sql        
sql/postgresql/upgrade/upgrade-5.6.0d3-5.6.0d4.sql        
sql/postgresql/upgrade/upgrade-5.7.0d1-5.7.0d2.sql        
sql/postgresql/upgrade/upgrade-5.7.0d2-5.7.0d3.sql        
sql/postgresql/upgrade/upgrade-5.7.0d3-5.7.0d4.sql        
sql/postgresql/upgrade/upgrade-5.8.0a1-5.8.0a2.sql        
sql/postgresql/upgrade/upgrade-5.8.0d1-5.8.0d2.sql        
sql/postgresql/upgrade/upgrade-5.8.0d2-5.8.0d3.sql        
sql/postgresql/upgrade/upgrade-5.8.0d3-5.8.0d4.sql        
sql/postgresql/upgrade/upgrade-5.8.1d5-5.8.1d6.sql        
sql/postgresql/upgrade/upgrade-5.8.1d7-5.8.1d8.sql        
sql/postgresql/upgrade/upgrade-5.9.0d1-5.9.0d2.sql        
sql/postgresql/upgrade/upgrade-5.9.0d2-5.9.0d3.sql        
sql/postgresql/upgrade/upgrade-5.9.0d3-5.9.0d4.sql        
sql/postgresql/upgrade/upgrade-5.9.0d4-5.9.0d5.sql        

Content Pages

www/
     admin/
           index.adp
          mime-types/
                extensions.adp
                extensions.tcl
                index.adp
                index.tcl
                map.adp
                map.tcl
                new.adp
                new.tcl
                unmap.tcl
      image-info.adp
      image-info.tcl
      index.adp
      index.vuh

  Contact Us
  Project Open Business Solutions S.L.

Calle Aprestadora 19, 12o-2a

E-08907 Hospitalet de Llobregat (Barcelona)

 Tel Europe: +34 932 202 088
 Tel US: +1 415 429 5995
 Mail: info@project-open.com