Package: raptus.article.teaser
Introductionraptus.article.teaser provides support for adding a teaser image on article.The following features for raptus.article are provided by this package:FieldsProvides an image field for the articles.Componentsraptus.article.teaser.fullraptus.article.teaser.rightraptus.article.teaser.leftDependenciescollective.flowplayerProducts.ContentTypeValidatorraptus.article.coreplone.app.imagingConfigurationJS Picture GalleriesBy default this component opens images in aProducts.jsImagePopupsgallery.To usecollective.prettyphotoinstall the package and set the propertyteaser_rel_attributetoprettyPhoto.plone.app.imagingTo use plone.app.imaging scales simply set the corresponding properties to the name
if the image scale.If present, those will overrule the width and height settings.available properties:teaser_thumb_scaleteaser_left_scaleteaser_full_scaleteaser_popup_scaleInstallationTo install raptus.article.teaser into your Plone instance, locate the file
buildout.cfg in the root of your Plone instance directory on the file system,
and open it in a text editor.Add the actual raptus.article.teaser add-on to the “eggs” section of
buildout.cfg. Look for the section that looks like this:eggs =
    PloneThis section might have additional lines if you have other add-ons already
installed. Just add the raptus.article.teaser on a separate line, like this:eggs =
    Plone
    raptus.article.teaserNote that you have to run buildout like this:$ bin/buildoutThen go to the “Add-ons” control panel in Plone as an administrator, and
install or reinstall the “raptus.article.default” product.Note that if you do not use the raptus.article.default package you have to
include the zcml of raptus.article.teaser either by adding it
to the zcml list in your buildout or by including it in another package’s
configure.zcml.Plone 3 compatibilityThis packages requires plone.app.imaging which requires two pins in buildout
when using Plone 3, which there are:Products.Archetypes = 1.5.16
plone.scale = 1.2MigrationBlob-storagecall this view on myplone/@@blob-article-teaser-migration and run the migration.
all media have a separate view at myplone/@@blob-article-media-migration.UsageComponentsNavigate to the “Components” tab of your article and select one of the teaser image
components and press “save and view”. Note that at the article requires an image to
be set in the edit form for the components to display.Copyright and creditsraptus.article is copyrighted byRaptus AGand licensed under the GPL.
See LICENSE.txt for details.Developer ManualNote: You find a developer manual for raptus.article atraptus.article.core.
Please have look there if you need more information.Code overviewComponentsplone.abovecontentbodyraptus.article.teaser.fullraptus.article.teaser.rightraptus.article.teaser.leftInterfacesfile: interfaces.pyITeaser - (Handler for teaser thumbing and captioning)getTeaserURL - method (Returns the url to the teaser image in the specific size.
The sizes are taken from the raptus_article properties sheet and are formed by the following name schema:
teaser_<size>_(height|width)If theteaser_<size>_scaleproperty is set, the corresponding
plone.app.imaging scale is used.getTeaser - method (Returns the html tag of the teaser image in the specific size
The sizes are taken from the raptus_article properties sheet and are formed by the following name schema:
teaser_<size>_(height|width)If theteaser_<size>_scaleproperty is set, the corresponding
plone.app.imaging scale is used.getSize - method (Returns the width and height registered for the specific size)I teaser_<size>_scale property is set it retuns the actual size of the
scaled image.getCaption - method (Returns the caption for the image)Changelog2.0b14 (2017-06-08)Prevent UnicodeDecodeError when generating the teaser image output [skaeser]2.0b13 (2014-10-15)Make the package compatible with plone.app.imagecropping >= 1.02.0b12 (2014-06-16)Add a propertyteaser_rel_attributeto be able to use a js-gallery
product other thanProducts.jsImagePopups.eg set it toprettyPhototo usecollective.prettyphoto.(this fixes #2) [fRiSi]Add propertiesteaser_*_scaleto be able to use plone.app.imaging
scales instead of the raptus.article image sizes.This allows us to useplone.app.imagecropping[fRiSi]2.0b11 (2013-07-22)Use image scales defined in plone.app.imaging if it’s available
and hard-coded ones if it’s not. [fRiSi]Make teaser images croppable using plone.app.imagecropping if
it’s installed. [fRiSi]2.0b10 (2013-07-01)No longer link to images if the displayed image is larger than the one linked to2.0b9 (2012-01-23)moved plone 4.1 compatibility fix into raptus.article.core to have it applied to
the whole raptus.article suitplone 4.1 compatibility by importing cmfcore permissions [fRiSi]2.0b8 (2011-02-22)add blob storage migration @@blob-article-teaser-migration2.0b7 (2010-12-07)Fixed French translations2.0b6 (2010-11-10)Added French translations2.0b5 (2010-10-24)Set zip_safe flag to False2.0b4 (2010-10-21)Updated readme and manual2.0b3 (2010-10-20)First public release