[387] | 1 | <configure |
---|
| 2 | xmlns="http://namespaces.zope.org/zope" |
---|
[1463] | 3 | xmlns:browser="http://namespaces.zope.org/browser" |
---|
| 4 | i18n_domain="quintagroup.seoptimizer"> |
---|
[387] | 5 | |
---|
[3233] | 6 | <!-- Starting from Plone-4.1 it is necessary to import permissions.zcml from Products.CMFCore. |
---|
| 7 | Since older versions of CMFCore didn't have that zcml, we are including whole |
---|
| 8 | package and permissions.zcml gets included if available. --> |
---|
| 9 | <include package="Products.CMFCore"/> |
---|
| 10 | |
---|
[2139] | 11 | <browser:page |
---|
| 12 | for="Products.Archetypes.interfaces.IBaseObject" |
---|
| 13 | attribute="validateKeywords" |
---|
| 14 | class=".keywords.ValidateSEOKeywordsView" |
---|
| 15 | name="checkSEOKeywords" |
---|
| 16 | permission="cmf.ModifyPortalContent" |
---|
| 17 | /> |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | <!-- MOVED from overrides.zcml : |
---|
| 21 | BECAUSE all views, viewlets registered for |
---|
| 22 | own, .interfaces.IPloneSEOLayer layer --> |
---|
| 23 | |
---|
| 24 | <!-- Registries for configlet --> |
---|
| 25 | <adapter factory=".seo_configlet.SEOConfigletAdapter" /> |
---|
| 26 | |
---|
| 27 | <browser:page |
---|
| 28 | name="seo-controlpanel" |
---|
| 29 | for="Products.CMFPlone.interfaces.IPloneSiteRoot" |
---|
| 30 | class=".seo_configlet.SEOConfiglet" |
---|
| 31 | layer=".interfaces.IPloneSEOLayer" |
---|
| 32 | permission="cmf.ManagePortal" |
---|
| 33 | /> |
---|
| 34 | |
---|
[387] | 35 | <!-- The customized title --> |
---|
| 36 | <browser:viewlet |
---|
| 37 | name="plone.htmlhead.title" |
---|
| 38 | manager="plone.app.layout.viewlets.interfaces.IHtmlHead" |
---|
[3471] | 39 | class=".viewlets.TitleCommentNoframeViewlet" |
---|
[955] | 40 | layer=".interfaces.IPloneSEOLayer" |
---|
[387] | 41 | permission="zope2.View" |
---|
| 42 | /> |
---|
| 43 | |
---|
| 44 | <browser:viewlet |
---|
[896] | 45 | name="quintagroup.seoptimizer.canonicalurl" |
---|
| 46 | manager="plone.app.layout.viewlets.interfaces.IHtmlHead" |
---|
| 47 | class=".viewlets.CanonicalUrlViewlet" |
---|
[955] | 48 | layer=".interfaces.IPloneSEOLayer" |
---|
[896] | 49 | permission="zope2.View" |
---|
| 50 | /> |
---|
| 51 | |
---|
| 52 | <browser:viewlet |
---|
[869] | 53 | name="quintagroup.seoptimizer.customscript" |
---|
| 54 | manager="plone.app.layout.viewlets.interfaces.IHtmlHead" |
---|
| 55 | class=".viewlets.CustomScriptViewlet" |
---|
[955] | 56 | layer=".interfaces.IPloneSEOLayer" |
---|
[869] | 57 | permission="zope2.View" |
---|
| 58 | /> |
---|
| 59 | |
---|
[2139] | 60 | <browser:viewlet |
---|
| 61 | name="quintagroup.seoptimizer.seotags" |
---|
| 62 | manager="plone.app.layout.viewlets.interfaces.IHtmlHead" |
---|
| 63 | class=".viewlets.SEOTagsViewlet" |
---|
[955] | 64 | layer=".interfaces.IPloneSEOLayer" |
---|
[2139] | 65 | permission="zope2.View" |
---|
[392] | 66 | /> |
---|
| 67 | |
---|
[2139] | 68 | <!--Views--> |
---|
| 69 | |
---|
[408] | 70 | <browser:page |
---|
| 71 | name="seo_context" |
---|
| 72 | for="*" |
---|
| 73 | class=".views.SEOContext" |
---|
[955] | 74 | layer=".interfaces.IPloneSEOLayer" |
---|
[408] | 75 | permission="zope2.View" |
---|
| 76 | /> |
---|
| 77 | |
---|
[1460] | 78 | <browser:page |
---|
| 79 | name="seo-context-properties" |
---|
| 80 | for="*" |
---|
| 81 | class=".views.SEOContextPropertiesView" |
---|
| 82 | layer=".interfaces.IPloneSEOLayer" |
---|
[2249] | 83 | permission="cmf.ModifyPortalContent" |
---|
[1460] | 84 | /> |
---|
| 85 | |
---|
[2139] | 86 | <browser:page |
---|
| 87 | name="seotab-visibility" |
---|
| 88 | for="*" |
---|
| 89 | class=".views.VisibilityCheckerView" |
---|
| 90 | attribute="checkVisibilitySEOAction" |
---|
| 91 | layer=".interfaces.IPloneSEOLayer" |
---|
[2970] | 92 | permission="zope.Public" |
---|
[1482] | 93 | /> |
---|
| 94 | |
---|
[2139] | 95 | <browser:resourceDirectory name="quintagroup.seoptimizer" directory="./resources" /> |
---|
[1801] | 96 | |
---|
[387] | 97 | </configure> |
---|