Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6186149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:50:10+00:00 2026-05-24T01:50:10+00:00

I’m using Plone 4.0.5, and I’ve spent the day trying to understand plone.app.contentmenu. I

  • 0

I’m using Plone 4.0.5, and I’ve spent the day trying to understand plone.app.contentmenu.

I have a custom folder based archetypes type, and I’ve written a view for it. When using the default base_view (site/MyObject/base_view), everything works as expected. Using my own custom view though, the menus start disappearing, and I haven’t been able to figure it out.

First, my zcml,

<browser:page
  for="my.product.interfaces.IMyType"
  name="view"
  class="my.product.browser.mytype.MyTypeViewView"
  permission="zope.Public"
/>

The view itself is as simple as possible:

class MyTypeViewView(BrowserView):
    template = ViewPageTemplateFile("templates/mytype_view.pt")
    def __call__(self):
        return self.template()

And the view template has also been slimmed down to nothing:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      lang="en"
      metal:use-macro="context/main_template/macros/master"
      i18n:domain="plone">
<body>
<metal:content-core fill-slot="content-core">
  hi there.
</metal:content-core>
</body>
</html>

If I access site/MyObject/view, the template shows “hi there”, but plone-contentmenu-actions and plone-contentmenu-workflow disappear. plone-contentmenu-factories however, remains. if I then modify the ZCML to set name=”view_test”, and visit site/MyObject/view_test, none of the menus at all display.

I have five different views for this type, and I want the workflow menu to display on all of them (or at the very least, my main view, so that I can test more easily until I figure it out).

If I rename my view to base_view and visit the object URL directly, I still don’t have a workflow menu available.

I guess my question should be:

What exactly are the rules plone works with to decide which menus to display, and when? What code should I be reading?

— edit:

I’ve added this function to my View:

def __init__(self, context, request):
    super(MyTypeViewView, self).__init__(context, request)
    alsoProvides(self, IViewView)
    alsoProvides(self.context, IViewView)

if I place a breakpoint in my call code, I get this:

>>> IViewView.providedBy(self)
True
>>> IViewView.providedBy(self.context)
True

I’m pretty sure I only needed to apply IViewView to the view itself, but regardless, this doesn’t change anything for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:50:10+00:00Added an answer on May 24, 2026 at 1:50 am

    Since you already have a view Class (MyTypeViewView) for your page it’s more straight-forward to make it implement the interface instead of make instances of it provide it:

    from plone.app.layout.globals.interfaces import IViewView
    
    class MyTypeViewView(BrowserView):
        interface.implements(IViewView)
    
        ...
    

    Although I think that this won’t solve your problem since I do have lots of custom views that do not implement IViewView but display all actions nicely.

    I guess you simply need to add your views to the available default views for your type in portal_types tool and you’re fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to understand how to use SyndicationItem to display feed which is
I have a small JavaScript validation script that validates inputs based on Regex. I
We're building an app, our first using Rails 3, and we're having to build
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have thousands of HTML files to process using Groovy/Java and I need to
I am using Paperclip to handle profile photo uploads in my app. They upload
I am trying to loop through a bunch of documents I have to put
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.