I try to use events "OnBeforeDocFormSave" & "OnDocFormSave" ...
-
MODX Staff
- 10,725 Posts
documentObject is only available to the front-end parser events...it is not applicable to the manager...
What field(s) are you trying to access? You can access pretty much all of the fields that are in documentObject too by using global for the following variables in your plugin:
$id
$introtext
$content
$pagetitle
$description
$alias
$link_attributes
$isfolder
$richtext
$published
$parent
$template
$menuindex
$searchable
$cacheable
$syncsite
$pub_date
$unpub_date
$document_groups
$type
$class_key
$keywords
$metatags
$contentType
$contentdispo
$longtitle
$variablesmodified
$donthit
$menutitle
$hidemenu
"He can have a lollipop any time he wants to. That's what it means to be a programmer."