Book Image

concrete5 Beginner's Guide

Book Image

concrete5 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
concrete5
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – creating the FTP based picture gallery


Carry out the following steps:

  1. We start with a two new directories—one named ftp_gallery in blocks and another named ftp_gallery but this time in files. Putting our pictures in a directory underneath files has the advantage that we're less likely to have problems with directory permissions as the files directory has to be writable and concrete5 checked that during the installation.

  2. The lightbox script files we need can be copied from the previous template, which you can find in blocks/slideshow/templates/gallery; only the directories css, js, and images are needed. If you haven't created that template, download the script from http://leandrovieira.com/projects/jquery/lightbox/ and extract all the three directories from the ZIP file. However, remove all JavaScripts except jquery.lightbox-0.5.min.js.

  3. Both files, add.php and edit.php, are identical again:

    <?php 
    defined('C5_EXECUTE') or die(_("Access Denied."));
    $this->inc('form_setup_html...