Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Panels include:
* Zope, showing information about how the Zope server is configured
* Versions, listing the versions of every package known to the Zope process


Safety
======

Expand All @@ -63,6 +64,7 @@ allowing a user to bypass Zope security.

In other words: **Do not install this package on your production server**.


Integration
===========

Expand All @@ -83,6 +85,14 @@ viewlet registration like this:
See ``plone.app.debugtoolbar.browser`` for plenty of examples of panels.


The debug toolbar registers itself as a viewlet in the portal footer within the
`plone.app.layout.viewlets.interfaces.IPortalFooter` viewlet manager.
If you have a custom theme without any viewlet managers included, you can also
directly include the debug toolbar as a view like so::

<tal:debug replace="structure context/@@plone.app.debugtoolbar.toolbar|nothing"/>


Contribute
----------

Expand Down
4 changes: 4 additions & 0 deletions news/32.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Add a debug toolbar view
Register a `plone.app.debugtoolbar.toolbar` browser view additionally to the viewlet with the same name.
This allows to include the debug toolbar in custom themes without viewlets.
[thet]
8 changes: 8 additions & 0 deletions src/plone/app/debugtoolbar/browser/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
directory="resources"
/>

<browser:page
name="plone.app.debugtoolbar.toolbar"
for="*"
template="toolbar.pt"
permission="zope2.View"
layer=".interfaces.IDebugToolbarLayer"
/>

<browser:viewlet
name="plone.app.debugtoolbar.toolbar"
manager="plone.app.layout.viewlets.interfaces.IPortalFooter"
Expand Down