Jump to content


JReviews is the best selling Joomla Reviews Component and WordPress Reviews Plugin. It's also in a class of its own as a Business Directory.
Photo
- - - - -

Json schema object properties


Best Answer Kristian , 06 October 2016 - 05:16 AM

Schema.org markup is not related to forms. If you want to apply schema.org markup to the data submitted via this FormBuilder field, you'd only need to add the schema.org object and properties to the theme output of the field.

Go to the full post


  • Please log in to reply
1 reply to this topic

#1 DanielH

DanielH

    Advanced Member

  • Members
  • PipPipPip
  • 369 posts

Posted 05 October 2016 - 08:41 PM

When creating forms should the object properties be set similar to that of the schema.org markup or is this still only done in the field manager itself?

 

Does this value even matter and it can be anything?

 

In the example below "address" and "streetAddress" are schema.org markup standard values. Just trying to understand the proper way to format these custom fields.

{
  "type": "object",
  "properties": {
    "address": {
      "title": "Address",
      "type": "object",
      "properties": {
        "streetAddress": {
          "type": "string"
        },
        "city": {
          "type": "string"
        }
      },
      "required": [
        "streetAddress",
        "city"
      ]
    }
  }
}

Thanks

Daniel



#2 Kristian

Kristian

    Advanced Member

  • Members
  • PipPipPip
  • 13499 posts

Posted 06 October 2016 - 05:16 AM   Best Answer

Schema.org markup is not related to forms. If you want to apply schema.org markup to the data submitted via this FormBuilder field, you'd only need to add the schema.org object and properties to the theme output of the field.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users