1 | <configure |
---|
2 | xmlns="http://namespaces.zope.org/zope" |
---|
3 | xmlns:five="http://namespaces.zope.org/five" |
---|
4 | xmlns:i18n="http://namespaces.zope.org/i18n" |
---|
5 | xmlns:genericsetup="http://namespaces.zope.org/genericsetup" |
---|
6 | xmlns:plone="http://namespaces.plone.org/plone" |
---|
7 | xmlns:browser="http://namespaces.zope.org/browser" |
---|
8 | xmlns:zcml="http://namespaces.zope.org/zcml" |
---|
9 | i18n_domain="quintagroup.portlet.cumulus"> |
---|
10 | |
---|
11 | <five:registerPackage package="." initialize=".initialize" /> |
---|
12 | |
---|
13 | <i18n:registerTranslations directory="locales" /> |
---|
14 | |
---|
15 | <include package="plone.app.portlets" /> |
---|
16 | |
---|
17 | <!-- Starting from Plone-4.1 it is necessary to import permissions.zcml from Products.CMFCore. |
---|
18 | Since older versions of CMFCore didn't have that zcml, we are including whole |
---|
19 | package and permissions.zcml gets included if available. --> |
---|
20 | <include package="Products.CMFCore"/> |
---|
21 | |
---|
22 | <genericsetup:registerProfile |
---|
23 | name="default" |
---|
24 | title="Tag cloud (cumulus) portlet" |
---|
25 | directory="profiles/default" |
---|
26 | description="This package allows you to display your site's tags using a Flash movie that rotates them in 3D. This is a ported to Plone WordPress WP-Cumulus plugin." |
---|
27 | provides="Products.GenericSetup.interfaces.EXTENSION" |
---|
28 | /> |
---|
29 | |
---|
30 | <!-- Register the portlet --> |
---|
31 | |
---|
32 | <plone:portlet |
---|
33 | name="quintagroup.portlet.cumulus.CumulusPortlet" |
---|
34 | interface=".cumulusportlet.ICumulusPortlet" |
---|
35 | assignment=".cumulusportlet.Assignment" |
---|
36 | view_permission="zope2.View" |
---|
37 | edit_permission="cmf.ManagePortal" |
---|
38 | renderer=".cumulusportlet.Renderer" |
---|
39 | addview=".cumulusportlet.AddForm" |
---|
40 | editview=".cumulusportlet.EditForm" |
---|
41 | /> |
---|
42 | |
---|
43 | <browser:resource |
---|
44 | name="tagcloud.swf" |
---|
45 | file="tagcloud.swf" |
---|
46 | /> |
---|
47 | |
---|
48 | <browser:resource |
---|
49 | name="swfobject.js" |
---|
50 | file="swfobject.js" |
---|
51 | /> |
---|
52 | |
---|
53 | <!-- Register tags retriever adapters --> |
---|
54 | <!-- default tags retriever that works everywhere --> |
---|
55 | <adapter |
---|
56 | for="*" |
---|
57 | provides=".interfaces.ITagsRetriever" |
---|
58 | factory=".catalog.GlobalTags" |
---|
59 | /> |
---|
60 | |
---|
61 | <configure zcml:condition="installed quills.core"> |
---|
62 | <!-- tags retrievers for Quills blog --> |
---|
63 | <adapter |
---|
64 | for="quills.core.interfaces.IBaseContent" |
---|
65 | provides=".interfaces.ITagsRetriever" |
---|
66 | factory=".blog.QuillsBlogTags" |
---|
67 | /> |
---|
68 | |
---|
69 | <adapter |
---|
70 | for="quills.core.interfaces.IWeblogEnhanced" |
---|
71 | provides=".interfaces.ITagsRetriever" |
---|
72 | factory=".blog.QuillsBlogTags" |
---|
73 | /> |
---|
74 | |
---|
75 | <adapter |
---|
76 | for="quills.core.interfaces.IPossibleWeblogEntry" |
---|
77 | provides=".interfaces.ITagsRetriever" |
---|
78 | factory=".blog.QuillsBlogTags" |
---|
79 | /> |
---|
80 | |
---|
81 | </configure> |
---|
82 | |
---|
83 | </configure> |
---|