This refers to the Moodle home directory all files and directories will be referred to with respect to that directory. Whenever a file's path is mentioned in this guide, it will always start with a slash. Whenever we refer to a file or directory name which contains "simplehtml", it's important to remember that only the "simplehtml" part is up to us to change the rest is standardised and essential for Moodle to work correctly. This does not constrain us regarding the name of the actual directory on the server where the files for our block will be stored, but for consistency we will follow the practice of using the lowercased form "simplehtml" in any case where such a name is required. Through this guide, we will be following the creation of an "HTML" block from scratch in order to demonstrate most of the block features at our disposal. A certain small amount of PHP programming knowledge is still required, though.Įxperienced developers and those who just want a programmer's reference text should refer to Appendix A because the main guide has a rather low concentration of pure information in the text. It's targeted mainly at people with little experience with Moodle or programming in general and aims to show how easy it is to create new blocks for Moodle. The guide is written as an interactive course which aims to develop a configurable, multi-purpose block that displays arbitrary HTML. Those wishing to read the old tutorial for Moodles 1.5 to 1.9 can find it under Blocks for 1.5 to 1.9. It applies to the 2.0 development version of Moodle (and any newer) only, as the blocks API changed significantly enough to warrant new documentation. ![]() The present document serves as a guide to developers who want to create their own blocks for use in Moodle. Original Author: Jon Papaioannou ( to Moodle 2.0 and above by: Greg J Preece ( 2.0 Why not view this page on the new site and help us to migrate more content to the new site! ![]() The information contained on the page should no longer be seen up-to-date. This content of this page has been updated and migrated to the new Moodle Developer Resources.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |