Hi,
Can some one guide me how to use the blockslider https://github.com/cgkineo/adapt-articleBlockSlider with the authoring tool
Hi,
Can some one guide me how to use the blockslider https://github.com/cgkineo/adapt-articleBlockSlider with the authoring tool
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
}
},
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