Custom view in View Menu

I have created a custom view for plone 5.2 in an own package. I have created a template file for the view.
I have created the following text to the configure.zcml

  <browser:pages
      for="plone.dexterity.interfaces.IDexterityContainer"
      class="plone.app.contenttypes.browser.folder.FolderView"
      permission="zope2.View">
    <browser:page
        name="kompakt"
        template="template/ansicht_kompakt.pt"
        menu="plone_displayviews"
        title="Kompakt"  
        />
  </browser:pages>
    
  <browser:menuItem
    menu="plone_displayviews"
    for="plone.dexterity.interfaces.IDexterityContainer"
    action="@@kompakt"
    title="MI_Kompakt"
    layer="MyPackage.interfaces.IMyAddOnLayer"
    />

And i have added the followig lines to interface.py

class IMyAddOnLayer(IDefaultPloneLayer):
    """Marker interface for browser layer"""

I can use my view manually by adding "@@kompakt" to the url of the current page.

My question is, how can i add my custom view to the view Menu in the left sidebar ?

you miss the part where you update the type. You can do it manually in ZMI > portal_types or with an upgrade step or reinstall.

Thanks yuri, that was the missing Part