| smithjonno 2004-02-16, 2:33 pm |
| Don't know if this is still relevent, but I stumbled across the following code (modified from the iFrame skin to allow the portlet print mode). Works for version 5
<pre>
<admin:portletidentifier>
<wps:urlGeneration contentNode="<%=contentNode%>" compositionNode="<%=compositionNode%>" newWindow="true" portletWindowState="solo">
<a href="<% wpsURL.write(out); %>" target="portletNewWindow" onclick="javascript: window.open('<% wpsURL.write(out); %>? fontPrint=true','portletNewWindow','resi
zable=yes,scrollbars=yes,menubar=yes,too
lbar=no,status=no,width=700,height=5
00,screenX=50,screenY=05,top=50,left=50'
).focus(); return false;">
<img border="0" align="middle" class="wpsPortletTitleIcon" src='<wps:urlFindInTheme file="images/admin/print.gif"/>' alt='<wps:text key="print.view" bundle="nls.titlebar"/>' title='<wps:text key="print.view" bundle="nls.titlebar"/>
;' /></a>
</wps:urlGeneration>
</admin:portletidentifier>
</pre>
You will need to include <%@ taglib uri="/WEB-INF/tld/admin.tld" prefix="admin" %>
|