Step 2 :
To make google read this data:
install (CSS Tools Plugin) - (Workflow → (Page is loaded) → Add/Edit Head Tags)
(Add/Edit Head Tags) - Paste the structured code you got in step 1 and insert the dynamic elements you want google to index
Sorry, I made a typo in my first reply. I meant how do you use a LIST of dynamic data?
So let’s say you have a datatype of FAQ. Your first entry would be “What is the return policy?” Second entry is “How long does it take to process a refund?” etc. Because the # of FAQ entries can vary, it needs to be a dynamic list.
So in the example from the Google Developer (below), there are two questions. How do you dynamically create the list of questions given there might be more or less than 2 FAQs,?
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "What is the return policy?",
"acceptedAnswer": {
"@type": "Answer",
"text": "<p>Most unopened items.....</p>"
}
}, {
"@type": "Question",
"name": "How long does it take to process a refund?",
"acceptedAnswer": {
"@type": "Answer",
"text": "We will reimburse you for...."
}, {
"@type": "Question",
"name": "Will I be charged sales tax for online orders?",
"acceptedAnswer": {
"@type": "Answer",
"text":"Local and State sales tax will be collected if your recipient's mailing address is in: <ul><li>Arizona</li><li>California</li><li>Colorado</li></ul>"}
}]
}
</script>
You can do it directly on the page element itself in the page HTML header section. No need for workflows. In this input you can add dynamic data. I do this in apps for structured data.
To your question about lists, you would need to use the formatted as text operator and then in that structure it for accepting JSON.
I don’t have an example of this to share as I have not done this, but I use the formatted as text with JSON for list of things. There are various threads with screen shot examples to see how that looks, but the JSON is different for all use cases.
Most important thing is to have a dynamic expression that would be your list ( could be search or an element with the list already available ) and after that dynamic expression add the formatted as text operator so you can then format the list in JSON style.
Hi there @lukinhapophack Can you explain to me why the trailing slash is required for the Schema markup to validate? I’ve noticed this issue and seen it mentioned elsewhere on the forum. Will the markup still ultimately be picked up if Google indexes my pages (without trailing slash) via my dynamic sitemap?
I can validate the structured data in Rich results Text successfully but on Schema.org the URL shows no results? I’m assuming it is a Bubble structure application because it is the same when you try to get the source code on Google too from a Bubble app, which then only shows the the basic page structure html and none of the actual content on the page