Issue
- Is there a setting or configuration to have the left side Control Menu hidden by default when a user logs in on our site?
Environment
- DXP 7.0
- DXP 7.1
- DXP 7.2
Resolution
- There are no settings or configurations present to change the default Control Menu position.
- However, it is possible to overwrite this default by creating a custom hook that replaces the out of the box
view.jsp.
Additional Information
NOTE: This resolution requires customization and should only be implemented at the discretion of your team. Liferay Support will not be able to assist with designing or implementing customizations.
- This Control Menu behavior is determined by an AUI method called
sidenavToggle(defaulting to open), within the associatedview.jspin thecom.liferay.product.navigationpackage,
as seen here for 7.0, 7.1, and 7.2. - To alter the default position of the Control Menu to be collapsed upon user login, customize the
sidenavToggledefault call to be closed. - More information on creating a custom hook or customizing content within the Control Menu can be found in the following Help Center articles: