Add a snippet to have a marginless image gallery
Project description
Marginless Gallery Snippet
This module extends the functionality of the website module to add a new snippet that forms a marginless gallery and allow you to create a grid of photos that have no spaces between themselves.
Usage
To use this module, you need to:
Edit any page in your website.
Go to Insert blocks > Features.
Drag the Marginless Gallery snippet anywhere in your page.
Choose a fixed height for all your images. This is required to maintain a solid layout. Must be a number.
- If you still do not want the fixed height (maybe because your theme
applies it), just leave blank and press Continue.
To change images, you need to:
Select any image block in the snippet you just created.
- Go to Customize > Background and choose any background you want.
Backgrounds will be centered and cover the whole element in any layout.
To change the images height, you need to:
Select any block inside the snippet you just created.
Go to the top parent.
Go to Customize > Change Images Height.
Input a number and press Continue.
To avoid trimming the images, you need to:
Select any block inside the snippet you just created.
Go to the top parent.
Go to Customize > Do not trim images.
Known issues / Roadmap
If you do not set a fixed height to all your images in the snippet, it will get an ugly layout. Right now we manually set the height, but whenever Bootstrap 4 starts being used in Odoo with its flexbox support, this will not be needed anymore.
Improve it using Masonry like the Graphene theme does. It should allow to set arbitrary heights to images with a beautiful layout.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback here.
Credits
Contributors
Jairo Llopis <j.llopis@grupoesoc.es>
Maintainer
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
To contribute to this module, please visit https://odoo-community.org.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo8_addon_website_snippet_marginless_gallery-8.0.1.0.1.99.dev16-py2-none-any.whl
.
File metadata
- Download URL: odoo8_addon_website_snippet_marginless_gallery-8.0.1.0.1.99.dev16-py2-none-any.whl
- Upload date:
- Size: 524.9 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/30.4.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb63ba7a5ba94ab19181230aa29a60a92d78a6069815ab3f05260b60d54ee1f4 |
|
MD5 | 4355530920ad30d334c7dd04edc32729 |
|
BLAKE2b-256 | 97888890e65f92b791fa2527711d3012518c73c5c8bc13299c2de057d411830e |