Skip to content

toutpt/collective.picturefill

 
 

Repository files navigation

Introduction

This addon install picturefill in Plone and provide a suite of tools to display images from different kind of components such as brain, dexterity object or archetypes object.

How to install

image

This addon can be installed has any other addons. please follow official documentation

How to use

in template:

tal:content="structure myimage_object/@@polyfill"

in python:

from collective.picturefill.interfaces import IPictureFill
IPictureFill(brain)()

CSS: You should use this tricks if you want in your theme that picturefill fit the exact size of the container:

div[data-picture] img{
    width: 100%;
}

Credits

Companies

People

About

PictureFill for Plone

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%