Empty Theme

In the Portal page popup with empty theme and empty skin entry i talked about how to open a portlet in the dialog box. And how you can use empty theme and empty skin so that portlet has full control on what gets displayed in the dialog box.

You can download the empty theme from here , the empty theme has only one file Default.jsp, which is very simple like this


<%@ page session="false" buffer="none" %>
<%@ taglib uri="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/portal-core"
prefix="portal-core" %>
<portal-core:screenRender/>


Only thing that Default.jsp is doing is forwarding control to portal-core:screenRender, which will go pass control to portal page aggregation engine for generating markup for the page. If you look at a page after applying this theme you will notice that it has only the markup generated by skin

Important Note In the real world your Default.jsp should look like this


<%@ page session="false" buffer="none" %>
<%@ taglib uri="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/portal-core"
prefix="portal-core" %>
<html>
<head>
<head>
// JavaScript and CSS file includes to handle rendering

</head>
<body>
<portal-core:screenRender/>
</body>
</html>


You should include your style classes and JavaScript code inside head

1 comment:

Guru Raj said...

Can you tel me how theme will connect to skins.means the flow..