ShowTable of Contents
The IBM® WebSphere® Portal 126.96.36.199 theme has several available skins:
- Standard skin. Shows a portlet title bar that has the portlet action menu on the right-hand side. The portlet action menu provides access to different actions at different times. In view mode the action menu allows users with the appropriate permission to edit, tag, or rate the portlet.
In page edit mode the action menu allows users with the appropriate permission to also move the portlet, edit wires, delete the portlet, and edit the portlet properties. The title bar also acts as a drag handle in page edit mode, to allow editors to move the portlet on the page.
- NoSkin skin. This not only has no title bar or action menu but also has no borders, no margins, and no padding. This allows Portal administrators to position portlets on the page that have no space in between, so the edges of the portlets touch.
- Hidden skin. This is very much like the Standard skin, with borders and margins, and shows the portlet title bar in page edit mode but does not show the portlet title bar in view mode.
The situation that many Portal customers face is that they use the NoSkin skin with one or more IBM Web Content Manager (WCM) rendering portlets on a page because they want no extra space around or in between the portlets. In view mode this works well because the end user has no need for the portlet action menu.
The challenge with this, however, is that administrators have no action menu, so they cannot edit the configuration of the WCM rendering portlet to set the library or content for that portlet to display.
If the Hidden skin is used, then there is an action menu in edit mode, but the Hidden skin has a margin and padding. In addition, when the title bar is displayed the portlet is pushed down so the portlet is no longer in the same place on the page. For example, it may not line up with portlets in other columns.
The solution to this challenge is the NoSkinPlus skin, which in edit mode will display its title bar super-imposed over the existing portlet. This gives the user access to both the title bar for dragging and the action menu for many other actions.
The NoSkinPlus skin
(JS) file, as follows:
- nls (directory)
When the Portal page is in view mode the NoSkinPlus looks just like the NoSkin skin (see figure 1).
Figure 1. View mode
When the Portal page is in edit mode and the mouse pointer is within the bounds of the portlet, the NoSkinPlus skin superimposes the portlet title bar and action menu icon over the upper part of the portlet (see figure 2).
Figure 2. Edit mode
Adding the NoSkinPlus skin to your custom theme
To add the NoSkinPlus skin to your existing custom theme, follow the steps below.
- The NoSkinPlus skin should only be added to a theme derived from the Portal 188.8.131.52 theme.
- The following steps also assume that you have not already modified the theme.json file or any of the .json files in the profiles directory. If you have, then you should compare your copy of the file with the copy of the file here and make the appropriate changes to your file.
- The copy actions should be performed via your favorite WebDAV client, using the “http://<host>:<port>/wps/mycontenthandler/dav/fs-type1” entry point. Example WebDAV clients include AnyClient and WebDrive.
- Copy the 7002.NoSkinPlus/skins/NoSkinPlus directory to <your_theme>/skins directory.
- Copy 7002.NoSkinPlus/contributions/theme.json to <your_theme>/contributions directory (this replaces your existing theme.json file).
- Copy 7002.NoSkinPlus/profiles/*.json to <your_theme>/profiles directory (this replaces all the .json files in your profiles directory).
- Edit the “register.NoSkinPlusSkin.xml” file, replacing:
a) <your-theme-dir-name> with the directory name in WebDAV of your target custom theme
b) <your-theme-uniquename> with the uniquename of your target custom theme
5. Import the “register.NoSkinPlusSkin.xml” file via the “Import XML” link in the Portal Administration user interface.
You can now change the skin of a portlet to the NoSkinPlus skin, if that portlet is on a page that has your custom theme assigned to it.
The NoSkinPlus theme
As an alternative we have also provided a complete custom theme, based on the Portal 184.108.40.206 theme, that already includes the NoSkinPlus skin. You can install this theme onto your Portal environment, using the steps below.
- The copy actions should be performed via your favorite WebDAV client, using the “http://<host>:<port>/wps/mycontenthandler/dav/fs-type1” entry point (not the “themelist” entry point). Example WebDAV clients include AnyClient and WebDrive.
- This custom theme is based on the Portal 220.127.116.11 theme from a Portal install that includes Cumulative Fix 14 and reuses all the dynamic content spots from the default 18.104.22.168 Portal theme.
- Copy the 7002.NoSkinPlus directory to <fs-type1>/themes directory. Or, you can compress the 7002.NoSkinPlus directory and deploy it via the ConfigEngine webdav-deploy-zip-file task.
- Import the “register.NoSkinPlusTheme.xml” file via the “Import XML” link in the Portal Administration user interface.
You can now assign the NoSkinPlus theme to a page and assign the NoSkinPlus skin to a portlet on that page.
This article has presented an enhancement for the NoSkin skin, called NoSkinPlus, that shows a portlet title bar in edit mode when the user hovers over the portlet. This makes it possible to configure and edit wires, edit portlet parameters, and drag the portlet, instead of having to rely on the old legacy administration portlets to accomplish these tasks.
The NoSkinPlus skin can either be added to your custom theme, if your custom theme is based on the 22.214.171.124 theme, or you can install the NoSkinPlus custom theme onto your Portal. This has also been reviewed by the Portal development team and is expected to be included in the product in the near future.
Tell us what you think
Please visit this link to take a one-question survey about this article:
WebSphere Portal Family wiki:
developerWorks® WebSphere Portal zone
WebSphere Portal forum:
John De Binder
joined IBM's Federal Systems Division in 1979 after graduating from Auburn University and worked on the Space Shuttle launch system for five years. Since joining Software Group (SWG) in 1984 he has worked on a Graphics Design Product, and on parts of IBM's OS/2® operating system and the Distributed Smalltalk Product. In 1996 he was one of a small group that started the SWG Services consulting team, first on IBM Smalltalk, then with WebSphere Application Server, Java, and then WebSphere Portal with IBM Software Services for Lotus® (ISSL). He is currently on the WebSphere Portal development team working on special projects and still helping clients. You can reach John at firstname.lastname@example.org