PropertyDefinitionAuditor

The info.magnolia.services.seo.audit.impl.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

Properties

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

Property Description

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
Feedback

Incubators

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the SEO module docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules