Carry out the following steps:
Create a new folder named
jqzoom
inblocks
as we did before.Download the plugin from the preceding link and copy the
images
directory to our new folder. Do the same with thecss
directory andjs
but make sure there's just one file injs
namedjquery.jqzoom-core-pack.js
.Create two files,
add.php
andedit.php
with the same content as always:<?php defined('C5_EXECUTE') or die('Access Denied.'); $this->inc('form_setup_html.php');
The database structure file
db.xml
is quite simple:<?xml version="1.0"?> <schema version="0.3"> <table name="btJqzoom"> <field name="bID" type="I"> <key /> <unsigned /> </field> <field name="title" type="C" size="255"></field> <field name="fIDpicture" type="I"></field> </table> </schema>
The block controller you have to save as
controller.php
also is...