Gallery Module

edited May 2014 in Modules
Does anyone have a gallery module they would mind sharing?

Having issues with image crud (http://www.grocerycrud.com/image-crud)

Comments

  • edited May 2014
    Although it may not have all the features of image crud, you can create a simple module with the fields you want to associate with the gallery and perhaps enable the tags module in MY_fuel_modules.php to create associations. Generating a simple module can be done via the command line to speed things up. You can then modify your table in MySQL to have the fields you want (e.g. id, title, image, thumbnail_image, date_added, published... etc).

    http://docs.getfuelcms.com/modules/simple
    http://docs.getfuelcms.com/modules/generate (for generating the module via command line)
    http://docs.getfuelcms.com/general/tags-categories (for associating tags with your gallery).

    You may also want to modify your simple module model's list_items method to use image tags instead of the name of the file:
    function list_items($limit = NULL, $offset = NULL, $col = 'precedence', $order = 'desc', $just_count = FALSE) { $data = parent::list_items($limit, $offset, $col, $order, $just_count = FALSE); foreach($data as $key => $val) { $data[$key]['image'] = '<img src="'.$val['image'].'" />'; } return $data; }
  • edited 4:12AM
    Thanks for this. Very helpful
Sign In or Register to comment.