Picture of Rafael Chaves
Specification of Adapt content format
by Rafael Chaves - Wednesday, 12 March 2014, 11:07 AM
 

Hi all,

Is there a reference documentation that explains the schema of the content specification format? What slots are available, what they mean, which ones are required, what are their types/valid values, what child objects are required etc?

Finding really hard to create valid content without knowing what rules I am playing by. Copying example code without knowing what you are doing only goes so far, and makes it so easy for one to get stuck.

Cheers,

Rafael 

 

Picture of Rafael Chaves
Re: Specification of Adapt content format
by Rafael Chaves - Wednesday, 12 March 2014, 2:54 PM
 

I guess this is what I was looking for:

https://github.com/adaptlearning/adapt_framework/wiki/Core-model-attributes

Is it up-to-date?

Picture of Adam Laird
Re: Specification of Adapt content format
by Adam Laird - Wednesday, 12 March 2014, 3:05 PM
 

The basic format is as below with added options depending on component type

"_id": "",
"_parentId": "",
"_type":"page/article/block/component",
"_component":"narrative/text/graphic/etc", (component only)
"_classes":"",
"_layout":"full", (component only)
"title": "",
"body":"",
"graphic": {
                    "src":"", "alt": "", "title": ""
                }

if the 'component' has items they are presented as

"items": [
            {"body":    "", "graphic": {"src":"", "alt": "", "title": ""},]

 

as a general rule

-------