Giter Club home page Giter Club logo

moodle-local_my's Introduction

My local component allow to take custom control upon the my page "layout" and structrure in a 
more moodle compliant way.

- Reorganize My layout
- Allow switching back to standard my
- Allow access override for power users against role assigned anywhere in Moodle
- Allow forcing some users in My Page only

It will need several patchs into main index.php and bloc navigation to work.

Recommended patchs :
#######################

Patch in index.php are usefull to allow some people overriding the My Page redirect.



Possible patchs :
#######################

In block/navigation/block_navigation.php, in get content :

        // Get the navigation object or don't display the block if none provided.
        if (!$navigation = $this->get_navigation()) {
            return null;
        }

        // PATCH : Removes link to home when forced my page
        // removes access to home for forced users
        $myoverride = false;

        if (has_capability('local/my:overridemy', context_system::instance()) && local_has_myoverride_somewhere()){
            $myoverride = true;
        }

        if ($CFG->localmyforce && !$myoverride) {
            $navigation->children->remove('home', 70);
        }
        // /PATCH

this requires local/my/lib.php being loaded earlier (f.e. in config.php)

2017072100
=========================================

Add capability local/my:ismanager to allow non siteadmins to have admin tab.

2017082200
=========================================

Add manager as being an author when assigned in some context

2019050300 - XXXX.0006
=========================================

Add more settings to control some elements visibility on widgets. Add
capability to hide/show course attributes on grid/boxed views.

XX.0011
=========================================

Privatize some widgets and the detailed pedagogic output.

2021031000 - XX.0013
=========================================

Add LTC override to course progression indicators, if exists in course.

2021100700 -- XX.0014
=========================================

Adds Pro section cache

moodle-local_my's People

Contributors

vfremaux avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.