CP.Content - contains features related to the content engine


The following tables list the members exposed by CPContentBaseClass.

Public Constructors

  Name Description
Public method CPContentBaseClass  
Top

Public Methods

  Name Description
Public method AbortEdit If workflow editing, edits to the record are aborted and the edit record is returned to the condition of hte live record. This condition is used in the Workflow publishing tool.
Public method ApproveEdit If workflow editing, the record is marked as approved for publishing. This condition is used in the Workflow publishing tool.
Public method Delete Delete records based from a table based on a content name and SQL criteria.
Public method GetAddLink Get an icon linked to the administration site which adds a new record to the content.
Public method GetContentControlCriteria Returns an SQL compatible where-clause which includes all the contentcontentid values allowed for this content name.
Public method GetCopy Get the string from the 'Copy Content' record based on it's name. If the record does not exist it is created with the default value provided.
Public method GetDataSource Returns the datasource name of the content given.
Public method GetEditLink Get an icon linked to the administration site which edits the referenced record. The record is identified by its ID. The recordname is only used for the display caption.
Public method GetFieldProperty Returns a named field property. Valid values for PropertyName are the field names of the 'Content Fields' content definition, also found as the columns in the ccfields table.
Public method GetID Returns the content id given its name
Public method GetLinkAliasByPageID Returns the primary link alias for the record id and querystringsuffix. If no link alias exists, it defaultvalue is returned.
Public method GetPageLink Return the appropriate link for a page.
Public method GetProperty Returns a named content property. Valid values for PropertyName are the field names of the 'Content' content definition, also found as the columns in the ccfields table.
Public method GetRecordID Return a record's ID given it's name. If duplicates exist, the first one ordered by ID is returned.
Public method GetRecordName Return a records name given it's ID.
Public method GetTable Get the table used for a content definition.
Public method GetTemplateLink If a template uses a fixed URL, the returns the link associted with a template. Otherwise it returns a blank string.
Public method IsChildContent Returns true if the childcontentid is a child of the parentcontentid
Public method IsField Used to test if a field exists in a content definition
Public method IsLocked Returns true if the record is currently being edited.
Public method IsWorkflow Returns true if the content is currently using workflow editing.
Public method PublishEdit If Workflow editing, the record is published.
Public method SetCopy Set a string in a 'Copy Content' record. The record will be created or modified.
Public method SubmitEdit If workflow editing, the record is submitted for pushlishing
Top

See Also