
The URL generated from the code in listing 2 targets the JSP file that renders the portlet context menu, the themeTemplate attribute tells WebSphere Portal what JSP file to render, and the value in themeTemplate must match the file name of the JSP file excluding the file extension, which in our case is portletContextMenu.
Hence all the portlet menu items are from portletContextMenu.jsp inside themes folder.
Now to remove a particular portelt menu, look for the following code inside porteltContextMenu.jsp

You can delete the above code to remove Maximize portlet menu. Similarly other portlet menus can be removed. You can find code for portlet menus like Personalize, Edit_Default, Config, Maximize, Minimize, Help, Delete etc in portletContextMenu.jsp. Hence for removing any menu, you can just find the entry of that particular menu and can remove it.
If you have any better approach or any suggestions to improve this post, please leave a comment below.
No comments:
Post a Comment