1 | <configure |
---|
2 | xmlns="http://namespaces.zope.org/zope" |
---|
3 | xmlns:five="http://namespaces.zope.org/five" |
---|
4 | xmlns:genericsetup="http://namespaces.zope.org/genericsetup" |
---|
5 | xmlns:plone="http://namespaces.plone.org/plone" |
---|
6 | xmlns:i18n="http://namespaces.zope.org/i18n" |
---|
7 | i18n_domain="quintagroup.portlet.static"> |
---|
8 | |
---|
9 | <five:registerPackage package="." initialize=".initialize" /> |
---|
10 | |
---|
11 | <i18n:registerTranslations directory="locales" /> |
---|
12 | |
---|
13 | <genericsetup:registerProfile |
---|
14 | name="default" |
---|
15 | title="Static Stylish portlet" |
---|
16 | directory="profiles/default" |
---|
17 | description="Static portlet with one extra styling field" |
---|
18 | provides="Products.GenericSetup.interfaces.EXTENSION" |
---|
19 | /> |
---|
20 | |
---|
21 | <!-- Register the portlet --> |
---|
22 | |
---|
23 | <!-- If the portlet has no configurable parameters, you can remove |
---|
24 | the EditForm declaration in staticstylishportlet.py and delete |
---|
25 | the 'editview' attribute from this statement. |
---|
26 | --> |
---|
27 | |
---|
28 | <plone:portlet |
---|
29 | name="quintagroup.portlet.static.StaticStylishPortlet" |
---|
30 | interface=".staticstylishportlet.IStaticStylishPortlet" |
---|
31 | assignment=".staticstylishportlet.Assignment" |
---|
32 | view_permission="zope2.View" |
---|
33 | edit_permission="cmf.ManagePortal" |
---|
34 | renderer=".staticstylishportlet.Renderer" |
---|
35 | addview=".staticstylishportlet.AddForm" |
---|
36 | editview=".staticstylishportlet.EditForm" |
---|
37 | /> |
---|
38 | |
---|
39 | <!-- Register the vocabularies --> |
---|
40 | <utility |
---|
41 | component=".vocabularies.PortletCSSVocabulary" |
---|
42 | name="quintagroup.portlet.static.vocabularies.PortletCSSVocabulary" |
---|
43 | /> |
---|
44 | |
---|
45 | </configure> |
---|