Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Plone 5
Faceted Navigation
Alin Voinea
Eau de Web, Romania
eea.facetednavigation - 10.0+
● PyPI Release: 10.0
● Plone 4 & 5 compatible.
● Drop Archetypes dependency
● zope.schema/z3...
buildout.cfg
[buildout]
eggs +=
eea.facetednavigation
Docker
$ docker run 
-p 8080:8080 
-e ADDONS=eea.facetednavigation 
plone:5
Plone 4 & 5 Demo
Faceted Widgets
Faceted Widgets: Before
from Products.Archetypes.public import Schema
EditSchema = Schema((
StringField('index',
schemata=...
Faceted Widgets: After
from zope import schema
from eea.facetednavigation.widgets.interfaces import ISchema
class ICheckbo...
Faceted Widgets: configure.zcml
Faceted Widgets: edit.js
Faceted Views
Faceted Views: configure.zcml
<faceted:view
name="faceted-items"
template="faceted-items.pt"
title="Faceted items"
permiss...
Faceted JS/CSS resources
Sprints
Saturday
github.com/eea/eea.facetednavigation/issues
Faceted navigation in Plone 5
Upcoming SlideShare
Loading in …5
×

Faceted navigation in Plone 5

Changes within eea.facetednavigation 10+ Plone Add-on

  • Login to see the comments

Faceted navigation in Plone 5

  1. 1. Plone 5 Faceted Navigation Alin Voinea Eau de Web, Romania
  2. 2. eea.facetednavigation - 10.0+ ● PyPI Release: 10.0 ● Plone 4 & 5 compatible. ● Drop Archetypes dependency ● zope.schema/z3c.form ● Dropped magic JS/CSS browser views: ○ faceted_view.js ○ faceted_edit.js ● Re-organized JS/CSS resources in bundles
  3. 3. buildout.cfg [buildout] eggs += eea.facetednavigation
  4. 4. Docker $ docker run -p 8080:8080 -e ADDONS=eea.facetednavigation plone:5
  5. 5. Plone 4 & 5 Demo
  6. 6. Faceted Widgets
  7. 7. Faceted Widgets: Before from Products.Archetypes.public import Schema EditSchema = Schema(( StringField('index', schemata="default", ... IntegerField('maxitems', schemata="display", ... class Widget(CountableWidget): edit_schema = EditSchema ...
  8. 8. Faceted Widgets: After from zope import schema from eea.facetednavigation.widgets.interfaces import ISchema class ICheckboxSchema(ISchema): index = schema.Choice( title=_(u"Catalog index"), maxitems = schema.Int( title=_(u"Maximum items"), class DisplaySchemata(FacetedSchemata): label = u'display'
  9. 9. Faceted Widgets: configure.zcml
  10. 10. Faceted Widgets: edit.js
  11. 11. Faceted Views
  12. 12. Faceted Views: configure.zcml <faceted:view name="faceted-items" template="faceted-items.pt" title="Faceted items" permission="zope2.View" />
  13. 13. Faceted JS/CSS resources
  14. 14. Sprints Saturday github.com/eea/eea.facetednavigation/issues

×