JSLD — Json-LD Plugins
22 sites
Security covered
JSLD is a module that allows you to easily add JSON-LD structured data to your Drupal site. It provides a plugin system to organize and attach JSON-LD content based on specific entity types, bundles, view modes, or URL paths.
JSLD is simple API for add Json-LD support to your site by using Plugin system.
Module doesn't do nothing without you, it's just help you to organize your Json-LD data on site.
Entity Plugin
Entity plugins is attached for specific entity type and their bundle\view-mode combinations.
It's used when you need to add JSON-LD on pages where specific entity is presented.
/**
* @JsldEntity(
* id = "node_news",
* entity_type = "node",
* entity_limit = {"news|*"}
* )
*/
Path Plugin
Path plugins is attached for specific pages applies on URL paths.
It's used when you need to add JSON-LD on pages with specific paths.
/**
* @JsldPath(
* id = "organization",
* match_type = "listed",
* match_path = {"/about", "<front>", "/info", "/info/*"}
* )
*/