Skip to content

Commit

Permalink
- modify z.a.folder.browser to use browser:containerViews
Browse files Browse the repository at this point in the history
  (for conciseness and to set a good example)
- fix <browser:containerViews index="..."/> to create an index page instead
  of a contents page

(merged from Zope3 trunk revision 27485)
  • Loading branch information
freddrake committed Sep 9, 2004
1 parent b651be9 commit d0349b7
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions browser/configure.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
i18n_domain="zope"
>

<browser:icon
name="zmi_icon"
for="zope.app.folder.interfaces.IFolder"
file="folder_icon.gif"
/>

<browser:addMenuItem
class="zope.app.folder.Folder"
title="Folder"
description="Minimal folder"
permission="zope.ManageContent"
/>

<browser:containerViews
for="zope.app.folder.interfaces.IFolder"
contents="zope.ManageContent"
index="zope.View"
/>

<!-- Preview view - requires zope.app.preview -->

<configure package="zope.app.preview">
<browser:page
for="zope.app.folder.interfaces.IFolder"
name="preview.html"
template="preview.pt"
permission="zope.ManageContent"
menu="zmi_views" title="Preview"
/>
</configure>

</configure>

0 comments on commit d0349b7

Please sign in to comment.