etp::get_page_attributes (public)

 etp::get_page_attributes [ -package_id package_id ]

Defined in packages/edit-this-page/tcl/etp-procs.tcl

Switches:
-package_id (optional)
Returns:
Creates the pa variable in the caller's context. Creates an array variable called pa in the caller's stack frame, containing all attributes necessary to render the current page. These attributes include the standard elements from the cr_revisions table such as title, description, and content. If the content_type parameter is provided, any extended page attributes that correspond to it will be included. See docs for etp::make_content_type to learn how this works.

Two database accesses are required to create the array variable. Once created, subsequent calls to this method will find the variable in a cache, unless a) any of the page attributes are changed, or b) the page has been flushed from the cache. (flush details TBD).

The complete list of standard attributes in the pa array is as follows:

  • item_id
  • name
  • revision_id
  • title
  • context_bar
  • context
  • description
  • publish_date
  • content
  • extended attributes, if any, defined by etp::make_content_type
Author:
Luke Pond
Created:
2001-05-31

Partial Call Graph (max 5 caller/called nodes):
%3 ad_conn ad_conn (public) ad_log ad_log (public) ad_returnredirect ad_returnredirect (public) ad_script_abort ad_script_abort (public) etp::get_content_type etp::get_content_type (public) etp::get_page_attributes etp::get_page_attributes etp::get_page_attributes->ad_conn etp::get_page_attributes->ad_log etp::get_page_attributes->ad_returnredirect etp::get_page_attributes->ad_script_abort etp::get_page_attributes->etp::get_content_type

Testcases:
No testcase defined.
[ show source ]
Show another procedure: