posted on 3:00 PM, July 12, 2009
A content object is an element of a web page, such as text, html, stylesheets, scripts, images, or downloadable files. This module provides methods to act on generic content objects.
This is part of the ExSite content stack, so it inherits from the ContentData (and then ContentBase) class, and is in turn inherited by Page.
(This method is actually inherited from ExSite::ContentBase.)
Instantiate and/or configure a content object.
my $content = new ExSite::Content(%option);
The setup methods are normally invoked automatically by the class constructor method
Returns the content/authorization type, ie. ``editorial'' or ``design'', which determines who is allowed to update the content.
Returns TRUE if the current user is permitted to update the content. This depends on the the user's access level, and their admin key for the current section, which determines their access privileges.
This creates a new revision of the content; it is synonymous with
This removes the most recent revision of the content.
Returns the number of revisions on file for this content.
NB: modifying means changing the content attributes, not updating the
content. The latter operation is done by calling the
my @errors = $content->validate($data);
Returns TRUE if the values in the the
Creates a new content object, with the attributes given in the
Removes the content object from the system. Attempts to unpublish its files, as well.
best practices (5)
content management (12)
data handling (7)
graphic design (21)
html formatting (7)
plug-in modules (28)
visual tutorial (29)
web protocols (9)