1 (edited by will 2015-10-30 00:24:35)

Topic: Simple gallery

Well, I've been playing with monstra and have changed this plugin quite a lot.
Using snippets or blocks along with a folder full of images you are able to create galleries such as a slideshow, lightbox, portfolios...
I have created some simple demos to give direction on the plugin's use.

Plugin: https://github.com/mightyhaggis/simple-gallery
Demos: http://www.mightyhaggis.com/blog/simple-gallery



Hello,

I am new to Monstra so thought the best way to figure out how it works was to create a plugin.
First I must say thanks to Awilum for creating such a great CMS.

This is purely front end, there is no script to manage the images. Though for myself I have tweaked Monstra's File Manager to automatically create thumbnails when images are uploaded.. I guess that's a basic manager of sorts.

Usage:

  • The plugin scans the specified folder in /public/uploads/ to to create the gallery, there needs to be a folder called thumb/ containing the   thumbnails of the images in the parent folder (thumbnail name matches image name)

  • 3 blocks needed to be created in Monstra.

    • 1 to contain the gallery wrapper template

    • 1 which is used for each image

    • 1 to use as a break in the gallery (optional) e.g. if after every 4 images you need a new row

    The name of the relevant blocks is set via the shortcode or php call


Details of use and shortcodes are in the readme.md, I would upload images but there aren't really any as you specify the presentation via the blocks.

Hopefully this first foray into Monstra Plugins/ contribution is of some use.. as you don't always need a full blown gallery app.
Feedback welcome.

will's Website

2 2015-01-29 20:57:05

Re: Simple gallery

Update original post

will's Website

Re: Simple gallery

Very nice work smile Gallery works and looks perfect!

Re: Simple gallery

@will

Nice post !

wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

Re: Simple gallery

Thanks wormsunited smile

Still learning / figuring things out. I plan on creating lots more plugins and maybe the odd tweak to montra itself.

will's Website

6 2015-02-01 12:42:21

Re: Simple gallery

@will

That sounds really great will. I hope to see more development soon wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

Re: Simple gallery

@will
You can make this plugin and morfy?

8 2015-02-02 11:48:44

Re: Simple gallery

@dextra

I belive its only for Monstra but you can download it and adapt the Plugin cant you?

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

9 (edited by will 2015-02-02 20:25:11)

Re: Simple gallery

@dextra.

It was designed for Monstra and uses both Monstra and Gelato libraries along with custom functions. I can't say that I've looked into Morfy much, so it would depending on the classes / libraries that are part of Morfy. If the libraries are missing the relevant functions could in theory be ported to the plugin directly...

will's Website