2017 © Pedro Peláez
 

moodle-block moodle-block_newblock

A block template for Moodle based on http://docs.moodle.org/dev/Blocks

image

danielneis/moodle-block_newblock

A block template for Moodle based on http://docs.moodle.org/dev/Blocks

  • Monday, October 23, 2017
  • by danielneis
  • Repository
  • 10 Watchers
  • 34 Stars
  • 2 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 26 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Moodle Block Template

This is a template for Moodle blocks., (*1)

It is used by Moosh (http://moosh-online.com/) to generate new block plugins., (*2)

  • This template assumes that the block is using a textual content type by default. If you want your block to display a list of items (using $this->content->items and $this->content->icons instead of $this->content->text), change the derived class of the block, from extends block_base to extends block_list. For more information: https://docs.moodle.org/dev/Blocks#Additional_Content_Types., (*3)

  • Go to Settings > Site Administration > Development > XMLDB editor and modify the module's tables., (*4)

  • Modify version.php and set the initial version of you module., (*5)

  • Visit Settings > Site Administration > Notifications, you should find the module's tables successfully created, (*6)

  • Go to Site Administration > Plugins > Blocks > Manage blocks and you should find that this newblock has been added to the list of installed modules., (*7)

  • You may now proceed to run your own code in an attempt to develop your module. You will probably want to modify block_newmodule.php and edit_form.php as a first step. Check db/access.php to add capabilities., (*8)

We encourage you to share your code and experience - visit http://moodle.org, (*9)

Good luck!, (*10)

Build Status, (*11)

The Versions

23/10 2017

dev-master

9999999-dev

A block template for Moodle based on http://docs.moodle.org/dev/Blocks

  Sources   Download

GPLv3

The Requires

 

by Daniel Neis Araujo