Picture of Renan Jon Manuel
one article per page
by Renan Jon Manuel - Monday, 21 October 2019, 11:19 PM
 

Hi everyone,

Is it possible to make a one article per page without having multiple content object IDs? like for example we have 3 articles on one contentobject but instead of scrolling from one article to another, im going to use navlink to navigate through the course. 

Im using Legacy Adapt framework.

 

thanks and regards,

Renan

Picture of Jorge Castrillo
Re: one article per page
by Jorge Castrillo - Tuesday, 22 October 2019, 2:50 PM
 

Hi Renan its possible,

You need to extend with underscore the pageView and then rewrite the functions that show the articles

Take a look a part of code to my plugin

define([
    'coreJS/adapt',
    'coreViews/pageView',
    'coreModels/contentObjectModel',
    './my-pageView',
    './my-pageModel'
    ], function(AdaptpagViewpagModelpagViewExtensionpagModelExtension){

        var pageViewInitialize = pagView.prototype.initialize;
        pagView.prototype.initialize = function(options){           
            _.extend(thispagViewExtension);
           return pageViewInitialize.apply(thisarguments);
        };

        var pageModelInitialize = pagModel.prototype.initialize;
        pagModel.prototype.initialize = function(options) {   
             _.extend(thisartModelExtension);
             return pageModelInitialize.apply(thisarguments);
        };
        
});

 

Check my plugin: https://community.adaptlearning.org/mod/forum/discuss.php?d=2397

Picture of Renan Jon Manuel
Re: one article per page
by Renan Jon Manuel - Wednesday, 23 October 2019, 7:44 AM
 

Hi Jorge, 

Thank you so much! 

Picture of Renan Jon Manuel
Re: one article per page
by Renan Jon Manuel - Tuesday, 12 November 2019, 11:06 PM
 

Hi Jorge,

Will you be able to share the plugin?

regards,
Renan

Picture of Renan Jon Manuel
Re: one article per page
by Renan Jon Manuel - Wednesday, 6 November 2019, 11:42 PM
 

Hi everyone, 

Still at this, is there a way to do this for Adaptv4? I saw Jorge's reply but the default theme's pageview doesnt look like it. 

regards,
Renan