cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r326425 - in /cocoon/branches/BRANCH_2_1_X: src/blocks/portal/java/org/apache/cocoon/portal/coplets/basket/BasketTransformer.java status.xml
Date Wed, 19 Oct 2005 07:12:42 GMT
Author: cziegeler
Date: Wed Oct 19 00:12:34 2005
New Revision: 326425

URL: http://svn.apache.org/viewcvs?rev=326425&view=rev
Log:
Portal block: Add title to basket item in the portal sample.

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/coplets/basket/BasketTransformer.java
    cocoon/branches/BRANCH_2_1_X/status.xml

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/coplets/basket/BasketTransformer.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/coplets/basket/BasketTransformer.java?rev=326425&r1=326424&r2=326425&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/coplets/basket/BasketTransformer.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portal/coplets/basket/BasketTransformer.java
Wed Oct 19 00:12:34 2005
@@ -109,8 +109,14 @@
                     final String copletId = attr.getValue("coplet");
                     final CopletInstanceData cid = service.getComponentManager().getProfileManager().getCopletInstanceData(copletId);
                   
                     ci = new ContentItem(cid, addContent);
-            }
+                }
 
+                // if a title is present set the title
+                final String title = attr.getValue("title");
+                if(title!=null) {
+                    ci.setTitle(title);
+                }
+                
                 // do we want to add the content to the basket or to the briefcase
                 final ContentStore store;
                 final String storeName = (attr.getValue("store") == null ? this.defaultStoreName
: attr.getValue("store"));

Modified: cocoon/branches/BRANCH_2_1_X/status.xml
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/status.xml?rev=326425&r1=326424&r2=326425&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/status.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/status.xml Wed Oct 19 00:12:34 2005
@@ -175,6 +175,9 @@
 
   <changes>
   <release version="@version@" date="@date@">
+    <action dev="CZ" type="fix" fixes-bug="33152" due-to="Philippe Gassmann" due-to-email="phil@anyware-tech.com">
+      Portal block: Add title to basket item in the portal sample.
+    </action>
     <action dev="CZ" type="fix" fixes-bug="37115,29405" due-to="Philippe Gassmann" due-to-email="phil@anyware-tech.com">
       Portal block: Fix history aspect when coplets are used.
     </action>



Mime
View raw message