New page type

New page type

autor Chris Morrow -
Počet odpovědí: 1

I'd like to make a new page type, alongside the others that live in mod/lesson/pagetypes. Is there a Moodly way to do that, or a plugin that can help? I don't want to make fresh (or copied) PHP files by hand, because I'm sure I'd break something (or at least miss something to fill in).

Průměr hodnocení: -
V odpovědi na Chris Morrow

Re: New page type

autor Jean-Michel Védrine -

Hello Chris,

Unfortunately what you want to do would be very complicated to do. The lesson code was not written to be extensible. So there would be a lot of places in the code to change to add a new pagetype.

This not like the question bank which was constructed from the beginning to allow new question types, new behaviours or new import formats to be added as plugins. There is no plugins for the lesson module and pagetypes are not plugins.

Good developer skills and a good knowledge and understanding of the code of the lesson module would be needed to do that and it would be a task requiring a good amount of work.

Sorry.