Page tree
Skip to end of metadata
Go to start of metadata

The PropertyDefinitionAuditor checks to see if a specified node property is defined. Use this auditor for missing properties in pages or content nodes. It doesn't check the value of the property, use PropertyValidationAuditor for that. Use I18NPropertyDefinitionAuditor to check the definition of internationalized properties (properties with language variants).

Class: info.magnolia.services.seo.audit.impl.PropertyDefinitionAuditor

In addition to the common auditor properties, this auditor can be configured with the following properties:

propertyName

required

Defines the node property name to be checked.

level

optional

Determines how a failed audit will be counted:

  • Error (auditErrors)
  • Warning (auditWarnings)
  • Note (auditNotes)

Example

Here is an example from the SEO module. You can find this configuration here: /modules/seo/config/auditManager/auditors/metaKeywordsDefined

metaKeywordsDefined: 
  active: true
  class: info.magnolia.services.seo.audit.impl.PropertyDefinitionAuditor
  description: Check for defined meta keywords (pre-prod)
  propertyName: keywords
  • No labels