I downloaded and extracted the file and copied the resulting questionnaire folder into the moodle\mod folder on my server. Ensured I was still logged in, refreshed my browser and was greeted by my good friend who I hang out with often these days, the Plugins Check page. I clicked the Upgrade button and after a few seconds saw the message mod_questionnaire successfully installed.
I remoted into the DB instance to see what new tables the installation created and saw 14 new mdl_questionnaire related tables, all nice and empty, at this point. The # of tables installed provides a clue to the capability of this module.
I entered one of our courses, activated edit mode and clicked on the add an activity link and there it was, the questionnaire option.
Rather straight forward and simple, once you have done it a couple times and know how to do things
High level steps for installing plugin
- Do your homework and ensure there is a need and a mature plugin available
- Find the plugin in the moodle plugin space
- Read its release notes
- Download the plugin zip
- Extract the content of the plugin zip
- Copy the extracted folder into the appropriate place // read the documentation in the plugin, Could be /mod, /report, /block etc.
- Click on the notification link
- Response to the Plugin Check page
- Check the DB to see new tables
- Check the appropriate menu in moodle for new option, Could be Admin|Reports, Blocks Add, add an activity etc.
I am reminded of a couple other hallmarks of moodle plugin design:
Hallmarks of moodle plugin design
In the root of the plugin folder, you will find:index.php // driver file.
version.php // for kicking the Plugin check for updates
settings.php // setting plugin variables
\db folder
\lang folder
\images and \css and \pix folders
db\install.php //populates db tables where needed
db\log.php
db\install.xml // responsible for creating tables for the plugin
db\access.php //setting capability definitions
Hi,
ReplyDeleteThank you so much for share your thoughts. I will definitely appreciate your ideas about Moodle Framework Development .
Moodle Framework Development
Aapthi Technologies USA
Ecommerce Web Development Company