2009-05-11 18:52:16 +02:00
|
|
|
<configure
|
|
|
|
xmlns="http://namespaces.zope.org/zope"
|
|
|
|
xmlns:browser="http://namespaces.zope.org/browser"
|
|
|
|
i18n_domain="plone.app.discussion">
|
2009-05-25 20:59:25 +02:00
|
|
|
|
2009-06-02 23:20:53 +02:00
|
|
|
<include package="plone.app.registry" />
|
|
|
|
|
2009-05-23 06:55:06 +02:00
|
|
|
<!-- Traversal adapter -->
|
2009-05-23 13:52:57 +02:00
|
|
|
<adapter factory=".traversal.ConversationNamespace" name="conversation" />
|
2009-05-11 18:52:16 +02:00
|
|
|
|
2009-05-23 06:55:06 +02:00
|
|
|
<!-- Comments viewlet -->
|
|
|
|
<browser:viewlet
|
|
|
|
name="plone.comments"
|
|
|
|
for="Products.CMFCore.interfaces.IContentish"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
view="plone.app.layout.globals.interfaces.IViewView"
|
|
|
|
manager="plone.app.layout.viewlets.interfaces.IBelowContent"
|
|
|
|
template="comments.pt"
|
|
|
|
class=".comments.CommentsViewlet"
|
|
|
|
permission="zope2.View"
|
|
|
|
/>
|
2009-05-11 18:52:16 +02:00
|
|
|
|
2009-05-27 15:23:25 +02:00
|
|
|
<!-- Comment view -->
|
|
|
|
<browser:view
|
|
|
|
name="view"
|
|
|
|
for="plone.app.discussion.interfaces.IComment"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".comments.View"
|
|
|
|
permission="zope2.View"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- Add comment view -->
|
2009-05-25 20:59:25 +02:00
|
|
|
<browser:view
|
|
|
|
name="add-comment"
|
|
|
|
for="plone.app.discussion.interfaces.IConversation"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".comments.AddComment"
|
|
|
|
permission="zope2.View"
|
|
|
|
/>
|
|
|
|
|
2009-05-27 15:23:25 +02:00
|
|
|
<!-- Reply to comment view -->
|
2009-05-26 21:58:33 +02:00
|
|
|
<browser:view
|
|
|
|
name="reply-to-comment"
|
|
|
|
for="plone.app.discussion.interfaces.IConversation"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
class=".comments.ReplyToComment"
|
|
|
|
permission="zope2.View"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- Resource directory for javascripts -->
|
|
|
|
<browser:resourceDirectory
|
|
|
|
name="plone.app.discussion.javascripts"
|
|
|
|
directory="javascripts"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- Resource directory for images -->
|
|
|
|
<browser:resourceDirectory
|
|
|
|
name="plone.app.discussion.images"
|
|
|
|
directory="images"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
/>
|
|
|
|
|
2009-05-27 09:25:19 +02:00
|
|
|
<!-- Resource directory for stylesheets -->
|
|
|
|
<browser:resourceDirectory
|
|
|
|
name="plone.app.discussion.stylesheets"
|
|
|
|
directory="stylesheets"
|
|
|
|
layer="..interfaces.IDiscussionLayer"
|
|
|
|
/>
|
|
|
|
|
2009-06-02 23:20:53 +02:00
|
|
|
<browser:page
|
|
|
|
name="discussion-settings"
|
|
|
|
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
|
|
|
|
class=".controlpanel.DiscussionSettingsControlPanel"
|
|
|
|
permission="cmf.ManagePortal"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- Utility view - use in portal_css or similar as portal/@@xdv-check/enabled" -->
|
|
|
|
<browser:page
|
|
|
|
name="discussion-check"
|
|
|
|
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
|
|
|
|
class=".controlpanel.Utility"
|
|
|
|
permission="zope.Public"
|
|
|
|
allowed_attributes="globally_enabled"
|
|
|
|
/>
|
|
|
|
|
2009-05-11 18:52:16 +02:00
|
|
|
</configure>
|