Help with adding a for loop in my schema markup #600
Unanswered
DOC-ELIJAH
asked this question in
Q&A
Replies: 1 comment 1 reply
-
What is the rendered markup that comes out of your for loop? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone. I need a little bit of guidance using the bioschema course profile. I am trying to do a for loop in my hasCourseInstance but I keep getting an error of unparsable structured data whenever I try to validate my markup.
The snippet looks like this:
"hasCourseInstance" : [ {%- for w in schedule.weeks %} { "@context": "https://schema.org", "@type": "CourseInstance", "dct:conformsTo": "https://bioschemas.org/profiles/CourseInstance/0.8-DRAFT-2020_10_06", "courseMode": "['online', 'synchronous']", "startDate" : "{{c.date}}", "endDate" :"{{c.date}}", "duration": "{{c.date}}", "name" : "{{c.title}}" } ]
Beta Was this translation helpful? Give feedback.
All reactions