Carry out the following steps:
As mentioned earlier, remove the
jqzoom
block from you website by using the Add Functionality section in your dashboard.Move the directory
blocks/jqzoom
topackages/c5book/blocks
.Open the package controller we created a few pages earlier; you can find it at
packages/c5book/controller.php
. The following snippet shows only a part of the controller, theinstall
method. The only thing you have to do is insert the highlighted line:public function install() { $pkg = parent::install(); // install blocks BlockType::installBlockTypeFromPackage('jqzoom', $pkg); }
Save the file and go to your dashboard again. Select Add Functionality and locate the
c5book
package; click on Edit and then Uninstall Package and confirm the process on the next screen. Back on the Add Functionality screen, reinstall the package again, which will automatically install the block.