Moodle theme developer tutorial 4/4 - how to override a renderer

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024
  • Here we override a core course renderer function to customise the display of course modules in our custom theme. You can follow along in any theme and override the function in the same way.
    Docs used:
    docs.moodle.or...
    Get the full course on Udemy: www.udemy.com/...
    or skillshare: skl.sh/3deuyuv
    Clone the code from here:
    github.com/kri...
    How to create a custom theme:
    • Moodle theme tutorial ...
    How to install and set up moodle:
    • Moodle setup tutorial ...
    For custom development work, one on one training, or Moodle hosting, get in touch with us over at ringertech.org...

Комментарии • 18

  • @captaincool6268
    @captaincool6268 4 года назад +6

    The best moodle tutorial doesn´t exi.......

  • @obamarules9841
    @obamarules9841 2 года назад

    these videos helped me find a job as a junior software developer. Lost of love bud

  • @MuhammadRummanislamnur
    @MuhammadRummanislamnur 4 года назад +6

    Thank you so much for sharing your knowledge. I have learned a lot from these videos. I will be waiting for the next video on Moodle. I would be very grateful if you could give me some videos on theme development

  • @TheSirDuck
    @TheSirDuck Год назад +1

    Thank you very much, help me a lot

  • @matthewnewman8088
    @matthewnewman8088 3 года назад

    Superb, thank you for sharing your expertise.

  • @SiddharthPatel013
    @SiddharthPatel013 3 года назад +2

    Indeed these are the best videos for Moodle development. Two thumbs up!!
    Can you please share a video in which there is a method used where the core templates can be called in the new block plugins?
    Example - progress bar, courses in progress etc.
    Thank you.

    • @moodletips
      @moodletips  3 года назад

      Thanks for watching! It's a good point about re-using templates, it's something we probably don't do enough of in moodle in general. In this video ruclips.net/video/TToG1R0pBHo/видео.html we use a custom template and render using render_from_template('local_message/manage' ..) You can put any template in there though, it doesn't have to belong to the same plugin. So that might be worth checking out as well to see more on how to use templates.

  • @Cloudwithsandy
    @Cloudwithsandy 3 года назад

    great information sir

  • @yacoubasylla7358
    @yacoubasylla7358 4 года назад +2

    thanks

  • @pgee70utube
    @pgee70utube 2 года назад

    let's just say that extending the course renderer wasn't that intuitive, this tutorial explains what to do, well done and thank you.

  • @juh1905
    @juh1905 4 месяца назад

    Hi, thank for sharing this has been very helpful, do you know how to override the actions menu (the gear icon) or how to hide from some user roles?

    • @moodletips
      @moodletips  4 месяца назад +1

      That should be editable directly from role capabilities, eg. if the user doesn't have course:manageactivities some of the options there won't display

    • @juh1905
      @juh1905 4 месяца назад

      @@moodletips thanks I’ll check

  • @djoudiaida2772
    @djoudiaida2772 3 года назад

    Thank you very much it's really useful video ,by the way i have question if we want to render many class we can't create a many files renders so how we can do it.

  • @hugoribeiro874
    @hugoribeiro874 3 года назад

    What about using namespaces ?

  • @djoudiaida2772
    @djoudiaida2772 3 года назад

    hello ,I followed step by step as in the video and when I made the modifications in the body it works but when I create renderers.php it does not work and I even checked in the config.php I have that "$ THEME-> rendererfactory = 'theme_overridden_renderer_factory';"

  • @sumitpatil3179
    @sumitpatil3179 3 года назад

    what if we upgrade the moodle version? do we need to upload the overriden renderer file again ?

    • @moodletips
      @moodletips  3 года назад +1

      This is a good question. When moodle is upgraded the original template file may be changed. So our theme might be overriding the old template with a new one.
      This needs to be checked manually. That's why normally you'll see themes have different versions for different moodle versions