ZCML File
configure.zcml
[top]
/
zope
/
app
/
catalog
/
browser
/ configure.zcml
<
zope:configure
xmlns
="
http://namespaces.zope.org/browser
"
xmlns:zope
="
http://namespaces.zope.org/zope
"
i18n_domain
="
zope
"
>
<
addMenuItem
title
="
Catalog
"
description
="
A Catalog allows indexing and searching of objects
"
permission
="
zope.ManageContent
"
class
="
zope.app.catalog.catalog.Catalog
"
/>
<
icon
name
="
zmi_icon
"
for
="
zope.app.catalog.interfaces.ICatalog
"
file
="
catalog_icon.gif
"
/>
<
containerViews
for
="
..interfaces.ICatalog
"
contents
="
zope.ManageServices
"
index
="
zope.ManageServices
"
add
="
zope.ManageServices
"
/>
<
pages
class
="
.catalog.Advanced
"
for
="
..interfaces.ICatalog
"
permission
="
zope.ManageContent
"
>
<
page
name
="
advanced.html
"
template
="
advanced.pt
"
menu
="
zmi_views
"
title
="
Advanced
"
/>
<
page
name
="
reindex.html
"
attribute
="
reindex
"
/>
</
pages
>
<
addform
name
="
AddFieldIndex
"
schema
="
..interfaces.IAttributeIndex
"
permission
="
zope.ManageServices
"
label
="
Add a field index
"
content_factory
="
..field.FieldIndex
"
arguments
="
field_name
"
keyword_arguments
="
interface field_callable
"
/>
<
addMenuItem
title
="
Field Index
"
description
="
Index items based on an orderable field value
"
permission
="
zope.ManageServices
"
class
="
..field.FieldIndex
"
view
="
AddFieldIndex
"
/>
<
schemadisplay
name
="
index.html
"
schema
="
..field.IFieldIndex
"
permission
="
zope.ManageServices
"
label
="
Field Index
"
menu
="
zmi_views
"
fields
="
interface field_name field_callable
"
title
="
Configuration
"
/>
<
addform
name
="
AddTextIndex
"
schema
="
..interfaces.IAttributeIndex
"
permission
="
zope.ManageServices
"
label
="
Add a text index
"
content_factory
="
..text.TextIndex
"
arguments
="
field_name
"
keyword_arguments
="
interface field_callable
"
/>
<
addMenuItem
title
="
Text Index
"
description
="
Index items based on multi-value fields with orderable values
"
permission
="
zope.ManageServices
"
class
="
..text.TextIndex
"
view
="
AddTextIndex
"
/>
<
schemadisplay
name
="
index.html
"
schema
="
..text.ITextIndex
"
permission
="
zope.ManageServices
"
label
="
Text Index
"
menu
="
zmi_views
"
fields
="
interface field_name field_callable
"
title
="
Configuration
"
/>
</
zope:configure
>