Fredi B 3 Years Ago - Edited Interesting post. Another possible solution would be using a boolean. <#assign showcontrolmenu = true /> <#if is_site_admin?? > <#if is_site_admin> <#assign showcontrolmenu = true /> <#else> <#assign showcontrolmenu = false /> </#if></#if> <#if showcontrolmenu> <@liferay.control_menu /></#if> Please sign in to reply. Reply as... Cancel Zankar Shah Fredi B 3 Years Ago - Edited Hi Fredi Thanks for the inputs. However with this solution Site Admin would never get the control menu. Lets say Site Admin would like to toggle with control menu then this approach might not work Please sign in to reply. Reply as... Cancel
Zankar Shah Fredi B 3 Years Ago - Edited Hi Fredi Thanks for the inputs. However with this solution Site Admin would never get the control menu. Lets say Site Admin would like to toggle with control menu then this approach might not work Please sign in to reply. Reply as... Cancel
Erik Galliani 3 Years Ago - Edited Hi Zankar, im new in JSF and Liferay and need to implement this functionality. Can you please write some small step-by-step, or some hints on how to implement your solution. Which files are to be changed? Thanks Please sign in to reply. Reply as... Cancel Zankar Shah Erik Galliani 3 Years Ago - Edited Sure Erik can guide you through. Generally in Liferay you create your custom theme. The above changes are done in your theme. In your custom theme you create, you should have portal_normal.ftl which contains main HTML body. So first point here "The control panel menu is added by adding following classes on the body tag" You need to change here Second point "and hide .control-menu-level-1" This can be done in your theme's custom.css Last point "To get back control panel menu you can have on/off switch...." This is done in your theme's JS files. If you are unsure about how to create your own custom theme then please go through some reference material for that. I hope this helps! Please sign in to reply. Reply as... Cancel Erik Galliani Zankar Shah 3 Years Ago - Edited thank you very much, i will look into custom themes Please sign in to reply. Reply as... Cancel
Zankar Shah Erik Galliani 3 Years Ago - Edited Sure Erik can guide you through. Generally in Liferay you create your custom theme. The above changes are done in your theme. In your custom theme you create, you should have portal_normal.ftl which contains main HTML body. So first point here "The control panel menu is added by adding following classes on the body tag" You need to change here Second point "and hide .control-menu-level-1" This can be done in your theme's custom.css Last point "To get back control panel menu you can have on/off switch...." This is done in your theme's JS files. If you are unsure about how to create your own custom theme then please go through some reference material for that. I hope this helps! Please sign in to reply. Reply as... Cancel Erik Galliani Zankar Shah 3 Years Ago - Edited thank you very much, i will look into custom themes Please sign in to reply. Reply as... Cancel
Erik Galliani Zankar Shah 3 Years Ago - Edited thank you very much, i will look into custom themes Please sign in to reply. Reply as... Cancel