How to activate the INavigationRoot interface when creating new members in plone site

StackOverflow https://stackoverflow.com/questions/18636259

  •  27-06-2022
  •  | 
  •  

Question

I have a Plone site which contains many users. I am trying to make the user folder look as autonomous as possible. I decided that the collective.lineage package is too much and I am trying to implement a much simpler solution. So whenever I create a new user, I go into the zmi and activate the following interface for the user's folder.

plone.app.layout.navigation.interfaces.INavigationRoot

This way the users have their own independent navigation bar. I am also using collective.folderlogo to let the users easily replace the plone site logo with their own.

I am wondering if there is a way to automatically activate the INavigationRoot interface whenever I create a new user.

Was it helpful?

Solution

You have to listen to IPrincipalCreatedEvent from Products.PluggableAuthService; then you can mark the folder with INavigationRoot as Mikko suggested.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top