Skip to content

Automatically Generate JSON+LD Schema on Resources

Notifications You must be signed in to change notification settings

matdave/modx_autoschema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AutoSchema for MODX

Add-on to automatically generate JSON+LD Schema on MODX Resources.

Basic usage is to just call the Snippet as [[AutoSchema]].

Available Properties

Key Default Value
id [[*id]]
tpl @INLINE <script type="application/ld+json">[[+data]]</script>
context https://schema.org
type Article
headline [[*pagetitle]]
name [[*pagetitle]]
logo null (must be complete to pass validation)
image null (must be complete to pass validation)
keywords null
description [[*description]]
articleSection [[*parent]]
authorName gets the fullname property from the createdby user
parseTags true (disable to prevent parsing modx tags in content)
custom [] (json object to merge in to the schema)

About

Automatically Generate JSON+LD Schema on Resources

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages