Prerequisites for using the ilos Button plugin for Atto:
- Access to the server where Moodle is installed and running. As this plugin is not registered for automatic update, it cannot be upgraded from Moodle UI and requires direct access to the server.
- The Atto rich text editor for Moodle. This may be enabled by navigating to Site Administration > Plugins > Text editors > Manage editors on the left-hand column of the Moodle page and using the up/down arrows to move 'Atto HTML editor' to the top of the list. Make sure that Atto is enabled by confirming that its corresponding icon under the 'Enable' column shows an unobstructed eye, or click the icon until it appears this way.
- Get the latest release source package (either as zip or tar.gz) from https://github.com/ilosvideos/moodleAttoPlugin/releases
- Log in to Moodle server.
- (Upgrade only) delete /lib/editor/atto/plugins/ilosbutton
- Extract source package under /lib/editor/atto/plugins. "ilos-Button-for-Atto-master" directory should be created.
- Rename "ilos-Button-for-Atto-master" to "ilosbutton".
- Access Moodle home page in a browser while logged in as an administrator. Moodle should detect the new/upgraded plug-in and show "Plugins check" screen which prompts you to install/upgrade. Click "Upgrade Moodle database now" button to proceed.
- After installation Moodle is going to redirect you to the plugin settings page. Setup your Organization API key in the Textbox. You can find your Organization API key in the ilos web app. Important: Plugin won't work until you set up your Organization API key'
- After previous step installation is completed, visit Site Administration > Plugins > Text Editors > Atto Toolbar Settings and confirm that 'ilosButton' has been added to the list of installed plugins for Atto.
- On this same page, add 'ilosbutton' to the list of buttons following the heading 'style1' (it should now read 'style1 = title, bold, italic, widget, ilosbutton') and save changes.
- Under the 'Site Administration' tab on the left side of the screen, navigate to Security -> Site Policies and check the box next to 'Enable Trusted Content'. By default, trusted content (e.g. ilos Videos) will be able to be posted by those assigned the role Manager or Course Creator. Trusted roles may be added under Site Administration > Permissions > Users > Define Roles by selecting a role and enabling or disabling 'Enable Trusted Content' for that role.
- Navigate to Site Administration > Users > Permissions > Define Roles and assign whichever users should be able to post ilos videos one of the roles in which posting trusted content is enabled.
- The ilos button for Atto should now be installed and will appear on all rich text input windows throughout the Moodle site.
- On a rich text input window on the Moodle site, navigate the cursor to the position at which you would like your video to be inserted and click the ilos button (the button containing the red ilos logo).
- Login, into your ilos account.
- Search the video you want.
- Click the video and it should be inserted as an iframe in the rich text editor
Making changes to the code:
Any changes to the plugin code within 'button.js' must be processed using YUI Shifter found at https://github.com/yui/shifter. To use the shifter, first install it by following the instructions on the linked page. Then, after saving any changes to 'button.js', open a terminal or command prompt window and navigate to the directory within the ilos Button folder containing the file 'build.json' (this should be yui/src/button) and run the 'shifter' command. After the script confirms that it executed successfully, reinstall the plugin by first uninstalling the current active version via Site Administration > Plugins > Text Editors > Atto Toolbar Settings on the Moodle page (making sure you keep a copy of the newly modified directory), and then following the above installation instructions, using the directory containing the new, processed code.