<p>What is the best way to use Json-LD schema in the templates for Craft 3? I would like to dynamically load parts of the info. I know about the SEOmatic plugin but looking for a way to do it on my own. </p>

CC BY-SA 4.0
2018-09-03T16:06:34.120Z
Can you elaborate on what it is you're trying to do? You just want to generate your own schema.org JSON LD via Twig?
andrew.welch
CC BY-SA 4.0
2018-09-05T00:22:27.730Z
Yes, basically. I was wondering if there is a way to load json-ld in the templates. So if I had in the template for a blog article I could put in script tags that had json-ld in it. Then fill out the stuff that would be the same and load the rest dynamically.
Mforeman
CC BY-SA 4.0
2018-09-05T21:02:56.260Z
I don't see anything preventing you from doing this in Twig?
andrew.welch
<templating><plugins><json><seo><plugin-seomatic>
JsonLD & Schema
# JsonLD & Schema

(Asked by: username_0 on 2018-09-03)

What is the best way to use Json-LD schema in the templates for Craft 3? I would like to dynamically load parts of the info. I know about the SEOmatic plugin but looking for a way to do it on my own.

**Tags:** templating, plugins, json, seo, plugin-seomatic

> **Comments:**
> **username_1**: Can you elaborate on what it is you're trying to do? You just want to generate your own schema.org JSON LD via Twig?  
> **username_0**: Yes, basically. I was wondering if there is a way to load json-ld in the templates. So if I had in the template for a blog article I could put in script tags that had json-ld in it. Then fill out the stuff that would be the same and load the rest dynamically.  
> **username_1**: I don't see anything preventing you from doing this in Twig?  

---

## 0 answers

