Picture of Heramb Naria
how to use blockslider with authoring tool?
by Heramb Naria - Friday, 10 June 2016, 6:32 AM
 

Hi,

Can some one guide me how to use the blockslider https://github.com/cgkineo/adapt-articleBlockSlider with the authoring tool

Sushil Vispute
Re: how to use blockslider with authoring tool?
by Sushil Vispute - Friday, 10 June 2016, 7:57 AM
 

Hi Heramb,

In articles.json you can add _articleBlockSlider block statement using adapt framework and publish it using grunt command (grunt build). 

find below example for the same.

             {

                                "_id": "a-05",

                                "_parentId": "co-05",

                                "_type": "article",

                                "_classes": "",

                                "title": "a-05",

                                "displayTitle": "",

                                "body": "",

        "_articleBlockSlider": {

            "_isEnabled": true,

            "_slideAnimationDuration": 600,

            "_heightAnimationDuration": 300,

            "_isEnabledOnScreenSizes": "large",

            "_hasTabs": false,

            "_hasArrows": true,

            "_startIndex": 0,

            "_hasUniformHeight": true,

            "_minHeight": null

        }

                },

Picture of Heramb Naria
Re: how to use blockslider with authoring tool?
by Heramb Naria - Friday, 10 June 2016, 9:14 AM
 

thanks for the reply...I found the file in the folder: adapt_authoring-master\adapt_framework\src\course\en 

 

it was like : 

[
{
"_id": "a-05",
"_parentId": "co-05",
"_type": "article",
"_classes": "",
"title": "a-05",
"displayTitle": "",
"body": ""
},
{
"_id": "a-10",
"_parentId": "co-10",
"_type": "article",
"_classes": "",
"title": "a-10",
"displayTitle": "",
"body": ""
},
{
"_id": "a-15",
"_parentId": "co-15",
"_type": "article",
"_classes": "",
"title": "a-15",
"displayTitle": "",
"body": "",
"_assessment": {
"_isEnabled": true,
"_id": "a-15",
"_isPercentageBased": true,
"_scoreToPass": 70,
"_includeInTotalScore": true,
"_assessmentWeight": 1,
"_banks": {
"_isEnabled": false,
"_split": "2,1",
"_randomisation": false
},
"_questions": {
"_resetType": "hard",
"_canShowFeedback": false,
"_canShowMarking": false,
"_canShowModelAnswer": false
},
"_isResetOnRevisit": true,
"_attempts": "infinite"
},
"_trickle": {
"_isEnabled": true
}
},
{
"_id": "a-20",
"_parentId": "co-15",
"_type": "article",
"_classes": "",
"title": "a-20",
"displayTitle": "",
"body": ""
}
]

 

which i edited to :

 

[
{
"_id": "a-05",
"_parentId": "co-05",
"_type": "article",
"_classes": "",
"title": "a-05",
"displayTitle": "",
"body": "",
"_articleBlockSlider": {
"_isEnabled": true,
"_slideAnimationDuration": 600,
"_heightAnimationDuration": 300,
"_isEnabledOnScreenSizes": "large",
"_hasTabs": false,
"_hasArrows": true,
"_startIndex": 0,
"_hasUniformHeight": true,
"_minHeight": null
}
},
{
"_id": "a-10",
"_parentId": "co-10",
"_type": "article",
"_classes": "",
"title": "a-10",
"displayTitle": "",
"body": ""
},
{
"_id": "a-15",
"_parentId": "co-15",
"_type": "article",
"_classes": "",
"title": "a-15",
"displayTitle": "",
"body": "",
"_assessment": {
"_isEnabled": true,
"_id": "a-15",
"_isPercentageBased": true,
"_scoreToPass": 70,
"_includeInTotalScore": true,
"_assessmentWeight": 1,
"_banks": {
"_isEnabled": false,
"_split": "2,1",
"_randomisation": false
},
"_questions": {
"_resetType": "hard",
"_canShowFeedback": false,
"_canShowMarking": false,
"_canShowModelAnswer": false
},
"_isResetOnRevisit": true,
"_attempts": "infinite"
},
"_trickle": {
"_isEnabled": true
}
},
{
"_id": "a-20",
"_parentId": "co-15",
"_type": "article",
"_classes": "",
"title": "a-20",
"displayTitle": "",
"body": ""
}
]

 

Then i did grunt build followed by node server to restart the authoring tool.

but when i edit an article, i cant see any option to create a block slider

Sushil Vispute
Re: how to use blockslider with authoring tool?
by Sushil Vispute - Friday, 10 June 2016, 12:07 PM
 

 

For articleBlockSlider essential more than one blocks and components, you can create it using  blocks.json and components.json instant of using authoring tool.  After running grunt build command, generate course build  in adapt_framework/build path, you can download it your local drive and check it.