portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raph...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/vm/controls jetspeed.vm
Date Mon, 28 May 2001 15:17:34 GMT
raphael     01/05/28 08:17:34

  Modified:    webapp/WEB-INF/conf admin.xreg controls.xreg
               webapp/WEB-INF/psml customize.psml
  Added:       webapp/WEB-INF/templates/jsp/screens Customize.jsp Show.jsp
               webapp/WEB-INF/templates/vm/controls jetspeed.vm
  Log:
  add VelocityPortletControl support classes and files
  
  Revision  Changes    Path
  1.2       +6 -0      jakarta-jetspeed/webapp/WEB-INF/conf/admin.xreg
  
  Index: admin.xreg
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/admin.xreg,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- admin.xreg	2001/05/02 10:52:34	1.1
  +++ admin.xreg	2001/05/28 15:17:32	1.2
  @@ -7,6 +7,12 @@
       <classname>org.apache.jetspeed.portal.portlets.ApplicationsPortlet</classname>
     </portlet-entry>
   
  +  <portlet-entry type="instance" name="PortletCustomizer" hidden="true">
  +    <security role="user"/>
  +    <classname>org.apache.jetspeed.portal.portlets.customize.PortletCustomizePortlet</classname>
  +    <parameter name="template" value="customize.vm"/>
  +  </portlet-entry>
  +
     <portlet-entry type="instance" name="HomepageCustomizer" hidden="true">
       <security role="user"/>
       <classname>org.apache.jetspeed.portal.portlets.customize.CustomizePortlet</classname>
  
  
  
  1.4       +13 -1     jakarta-jetspeed/webapp/WEB-INF/conf/controls.xreg
  
  Index: controls.xreg
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/controls.xreg,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- controls.xreg	2001/05/08 10:07:35	1.3
  +++ controls.xreg	2001/05/28 15:17:32	1.4
  @@ -10,20 +10,32 @@
       <media-type ref="html"/>
     </portlet-control-entry>
   
  +  <portlet-control-entry name="FullScreenControl">
  +    <classname>org.apache.jetspeed.portal.controls.FullScreenControl</classname>
  +    <meta-info>
  +      <title>FullScreenControl</title>
  +    </meta-info>
  +    <media-type ref="html"/>
  +    <media-type ref="wml"/>
  +  </portlet-control-entry>
  +
     <portlet-control-entry name="ClearPortletControl">
       <classname>org.apache.jetspeed.portal.controls.ClearPortletControl</classname>
       <meta-info>
         <title>ClearPortletControl</title>
       </meta-info>
  +    <media-type ref="wml"/>
       <media-type ref="html"/>
     </portlet-control-entry>
   
     <portlet-control-entry name="TitlePortletControl">
  -    <classname>org.apache.jetspeed.portal.controls.TitlePortletControl</classname>
  +    <classname>org.apache.jetspeed.portal.controls.VelocityPortletControl</classname>
  +    <parameter name="theme" value="jetspeed.vm"/>
       <meta-info>
         <title>TitlePortletControl</title>
       </meta-info>
       <media-type ref="html"/>
  +    <media-type ref="wml"/>
     </portlet-control-entry>
   
     <portlet-control-entry name="PanedPortletControl">
  
  
  
  1.2       +5 -10     jakarta-jetspeed/webapp/WEB-INF/psml/customize.psml
  
  Index: customize.psml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/psml/customize.psml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- customize.psml	2000/12/15 00:59:12	1.1
  +++ customize.psml	2001/05/28 15:17:33	1.2
  @@ -1,14 +1,9 @@
   <?xml version="1.0" encoding="iso-8859-1"?>
   <portlets user="default" xmlns="http://xml.apache.org/jetspeed/2000/psml">
   
  -   <skin>
  -      <property name="selected-color" value="#990000"/>
  -      <property name="background-color" value="FFFFFF"/>
  -      <property name="title-color" value="#FFCC00"/>
  -   </skin>
  -      <!-- entry parent has to refer to the customize portlet according to the jetspeed-config.jcfg
-->
  -      <entry type="ref" parent="HomepageCustomizer">
  -         <layout position="0"/>
  -         <control name="org.apache.jetspeed.portal.controls.ClearPortletControl"/>
  -      </entry>
  +   <skin name="orange-grey" />
  +
  +    <entry type="ref" parent="HomepageCustomizer">
  +      <control name="ClearPortletControl"/>
  +    </entry>
   </portlets>
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/jsp/screens/Customize.jsp
  
  Index: Customize.jsp
  ===================================================================
  <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>
  
  <jetspeed:pane name="customize" />
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/jsp/screens/Show.jsp
  
  Index: Show.jsp
  ===================================================================
  <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>
  
  <jetspeed:portlet/>
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/controls/jetspeed.vm
  
  Index: jetspeed.vm
  ===================================================================
  <table border="0" bgcolor="$!{skin.BackgroundColor}" cellpadding="0" cellspacing="0"
width="100%">
  <tr bgcolor="$!{skin.TitleBackgroundColor}">
      <td align="left"  bgcolor="$!{skin.TitleBackgroundColor}" nowrap="true" valign="middle"
width="100%">
        <b><font color="$!{skin.TitleTextColor}">$portlet.Title</font><b>
      </td>
      <td align="right" bgcolor="$!{skin.TitleBackgroundColor}" nowrap="true" valign="middle">
  #foreach ( $action in $actions )
        <a href="${action.Link}"><img src="images/${action.Name}.gif" border="0"></a>
  #end
      </td>
  </tr>
  #if( $portlet.isMinimized($data) )
  <!-- minimized -->
  #else
  <tr>
      <td colspan="2" align="center" valign="top" width="100%" >
          <table border="0" cellpadding="2" cellspacing="0" width="100%" align="center">
          <tr>
              <td>
                  $portlet.getContent($data)
              </td>
          </tr>
          </table>
      </td>
  </tr>
  #end
  </table>
  
  
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message