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.

  • 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 Sep 3 '18 at 16:06
  • 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 Sep 5 '18 at 0:22
  • 1
    I don't see anything preventing you from doing this in Twig? – andrew.welch Sep 5 '18 at 21:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.