I’m using the built-in Side Menu element and corresponding Content section. I have two questions:
We will have user roles that will determine which pages users have access to. This should of course be reflected in the navigation. What is best practice for handling this? Currently we have separate “home” pages for each user role with their corresponding side menu but that doesn’t really work since it would mean having multiple versions of each page to which more than one role has access to. Is conditional rendering the answer?
The side menu currently sticks to the left side of the window no matter what. I would like it to follow a certain max width and have blank space beyond that whenever the window exceeds that width. How can this be done with the OOTB Side Menu section in WeWeb?
Great, thank you. Just to clarify, do you mean have a number of side menu sections and use conditional rendering to only show the one that matches the user role, or a single side menu section but conditional rendering on the links within the menu to only show links to pages the user can access? Is there any performance difference between these two options? Thanks!
It depends how different the menus are, if they are fairly similar with different links use one section and conditionally change content inside the section