Installation / Deployment
Note: You must have a
{% styles %}
and{% scripts %}
tag in your page header/footer so that the plugin can inject the required assets.
<head>
...
{% styles %}
</head>
<body>
...
{% scripts %}
</body>
For more information see the OctoberCMS docs!
Installation
To install from your site “backend”: go to Settings → Updates & Plugins → Install Plugins and then search for “November Gallery”.
To install from the Marketplace: click Add to Project
and select the project you wish to use the plugin on. Once the plugin has been added to your project, from the backend area of your site click the Check for updates
button on the Settings → Updates & Plugins page to pull in the plugin.
To install from the repository (not recommended), you’d have to first install the imageresizer plugin.
Here’s an actual (abridged) transcript of an installation into a fresh install of October (all commands for Ubuntu, make sure adjust to your environment):
USER@SERVER:/var/www/novembergallery.zenware.io/public_html# sudo git clone https://github.com/toughdeveloper/oc-imageresizer-plugin.git plugins/toughdeveloper/imageresizer
Cloning into 'plugins/toughdeveloper/imageresizer'...
...
USER@SERVER:/var/www/novembergallery.zenware.io/public_html# sudo git clone https://github.com/lieszkol/november-gallery.git plugins/zenware/novembergallery
Cloning into 'plugins/zenware/novembergallery'...
...
USER@SERVER:/var/www/novembergallery.zenware.io/public_html# sudo chown -R www-data:www-data plugins/toughdeveloper/
USER@SERVER:/var/www/novembergallery.zenware.io/public_html# sudo chown -R www-data:www-data plugins/zenware/
USER@SERVER:/var/www/novembergallery.zenware.io/public_html# sudo -u www-data php artisan plugin:refresh toughdeveloper.imageresizer
Rolled back: ToughDeveloper.ImageResizer
Reinstalling plugin...
ToughDeveloper.ImageResizer
...
USER@SERVER:/var/www/novembergallery.zenware.io/public_html# sudo -u www-data php artisan plugin:refresh zenware.novembergallery
Rolled back: ZenWare.NovemberGallery
Reinstalling plugin...
ZenWare.NovemberGallery
- v1.0.1: First version of NovemberGallery
You can also install the image resizer plugin if you wish to use that for thumbnail generation, for that you can run sudo -u www-data git clone https://github.com/toughdeveloper/oc-imageresizer-plugin.git plugins/toughdeveloper/imageresizer
and sudo -u www-data php artisan plugin:refresh toughdeveloper.imageresizer
.
Updates
For plugins installed from the marketplace, you can just do **Settings → Updates & Plugins → Check for Updates.
For plugin installed manually, you can run the following from your project root directory:
USER@SERVER:/var/www/vhost/public_html# sudo -u www-data git -C plugins/zenware/novembergallery/ pull
remote: Enumerating objects: 14, done.
...
USER@SERVER:/var/www/vhost/public_html# sudo -u www-data php artisan october:up
ZenWare.NovemberGallery - v1.0.4: Extend Rainlab Blog integration with support for images in media folders ...
No Comments