Author: ktlili
Date: Sun Nov 25 20:28:13 2007
New Revision: 19284

URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D19284&repname=
=3Djahia
Log:
- commit portlets categories( admin view ): classes + categories =


Modified:
    trunk/core/src/java/org/jahia/taglibs/ajax/ComplexTreeInclude.java

Modified: trunk/core/src/java/org/jahia/taglibs/ajax/ComplexTreeInclude.java
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/trunk/core/src/java/o=
rg/jahia/taglibs/ajax/ComplexTreeInclude.java&rev=3D19284&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/core/src/java/org/jahia/taglibs/ajax/ComplexTreeInclude.java (ori=
ginal)
+++ trunk/core/src/java/org/jahia/taglibs/ajax/ComplexTreeInclude.java Sun =
Nov 25 20:28:13 2007
@@ -129,6 +129,10 @@
      * The Category tree as displayed in the in the admin when moving a ca=
tegory
      */
     public static final String MOVE_CATEGORY_STYLE =3D "ComplexTreePropert=
ies.MOVE_CATEGORY_STYLE";
+    /**
+     * The Category tree as displayed in the in the manage portlet's categ=
ory engine
+     */
+    public static final String PORTLET_CATEGORY_STYLE =3D "ComplexTreeProp=
erties.PORTLET_CATEGORY_STYLE";
 =

     // The title to display as the Title of the ComplexTree
     private String title =3D "";
@@ -527,6 +531,14 @@
                 serverURLExpand =3D contextPath + CATEGORY_URL + params + =
"&move=3Dmove";
             }
 =

+        }else if ( style.equals(PORTLET_CATEGORY_STYLE)) {
+            if (entryPointURL =3D=3D null || entryPointURL.length() =3D=3D=
 0) {
+                entryPointURL =3D contextPath + CATEGORY_URL + params + "&=
portletCategories=3Dtrue";
+            }
+            if (serverURLExpand =3D=3D null || serverURLExpand.length() =
=3D=3D 0) {
+                serverURLExpand =3D contextPath + CATEGORY_URL + params + =
"&portletCategories=3Dtrue";
+            }
+
         } else {
             throw new RuntimeException("Unknown Style: " + style);
         }

_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list

Reply via email to