DeleteContent controller allows authorized users to delete documents they created.
It extends Form controller.
Model fields are available in templates with the "user" prefix (user.fullname, user.email etc.).
MODxAPI class to manage documents or other type of records.
Possible values - MODxAPI class name.
Default value - \modResource.
Path to the MODxAPI class.
Possible values - relative file path.
Default value - assets/lib/MODxAPI/modResource.php.
Class to manage users.
Possible values - class name. Use Pathologic\EvolutionCMS\MODxAPI\modUsers model from pathologic/modxapi package in Evo 3.0.
Default value - \modUsers
Path to the class to manage users.
Possible values - relative file path.
Default value - assets/lib/MODxAPI/modUsers.php
Field name to get the record owner. For the modResource class it can be the name of a tv-parameter (because web users can not create documents in Evo).
Possible values - field name. It should be "createdby" in Evo 3.x.
Default value - aid.
$_REQUEST array key to get the id of the record to be deleted.
Default value - id.
Redirects user after successful operation.
Possible values - target page id or array.
Default value - none.
Outputs message if user is not the record owner.
Possible values - template name, according to DocLister templating rules.
Default value - deleteContent lexicon entry with the key [%deleteContent.default_badOwnerTpl%].
Outputs message if user can not delete record (it doesn't exists, for example).
Possible values - template name, according to DocLister templating rules.
Default value - deleteContent lexicon entry with the key [%deleteContent.default_badRecordTpl%].
Outputs message if user is not authorized.
Possible values - template name, according to DocLister templating rules.
Default value - deleteContent lexicon entry with the key [%deleteContent.default_skipTpl%].
Success message template.
Possible values - template name, according to DocLister templating rules.
Default value - deleteContent lexicon entry with the key [%deleteContent.default_successTpl%]
Redirects non authorized user.
Possible values - target page id or array.
Default value - none.
Redirects if record can not be deleted.
Possible values - target page id or array.
Default value - none.