portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r474885 - in /portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF: portlet.xml view/site/sitemap.vm
Date Tue, 14 Nov 2006 17:32:30 GMT
Author: taylor
Date: Tue Nov 14 09:32:29 2006
New Revision: 474885

URL: http://svn.apache.org/viewvc?view=rev&rev=474885
Log:
http://issues.apache.org/jira/browse/JS2-604
contribution from Ruben Fragoso
Site Map view portlet

Added:
    portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/sitemap.vm
Modified:
    portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/portlet.xml

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/portlet.xml?view=diff&rev=474885&r1=474884&r2=474885
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/portlet.xml (original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/portlet.xml Tue Nov
14 09:32:29 2006
@@ -1406,6 +1406,34 @@
             </preference>
         </portlet-preferences>        
     </portlet>
-             
+
+  <portlet id="SitemapView">
+    <portlet-name>SitemapView</portlet-name>
+    <display-name>Sitemap View</display-name>
+    <description>A view of the site map available to the current user</description>
     
+    <portlet-class>org.apache.portals.bridges.velocity.GenericVelocityPortlet</portlet-class>
+    <resource-bundle>org.apache.jetspeed.portlets.site.resources.Sitemap</resource-bundle>
+    <init-param>
+      <description>This parameter sets the template used in view mode.</description>
+      <name>ViewPage</name>
+      <value>/WEB-INF/view/site/sitemap.vm</value>
+    </init-param>
+    <init-param>
+        <name>portlet-icon</name>
+        <value>system-file-manager.png</value>
+    </init-param>          
+    <supports>
+      <mime-type>text/html</mime-type>
+      <portlet-mode>VIEW</portlet-mode>
+    </supports>
+      <supported-locale>en</supported-locale>
+      <supported-locale>pt</supported-locale>      
+      <portlet-info>
+        <title>Site Map View</title>
+        <short-title>Site</short-title>
+        <keywords>site,sitemap,map,portal,view</keywords>
+      </portlet-info>
+  </portlet>
+                 
 </portlet-app>
 

Added: portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/sitemap.vm
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/sitemap.vm?view=auto&rev=474885
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/sitemap.vm
(added)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/site/sitemap.vm
Tue Nov 14 09:32:29 2006
@@ -0,0 +1,34 @@
+#set($site = $request.getAttribute("org.apache.jetspeed.portalsite.PortalSiteRequestContext"))
+#set ($PropertiesValue = $portletConfig.getResourceBundle($renderRequest.Locale))
+#set($rc = $renderRequest.getAttribute("org.apache.jetspeed.request.RequestContext"))
+#set($req = $rc.Request)
+#set($preferedLocale = "en")
+#set($navigationsStandardMenu = $site.getMenu("site-navigations"))
+
+<div id="contentsPageTitleContainer">
+<p class="contentsPageIntro"><b>$PropertiesValue.getString('IntroText')</b></p>
+
+<p style="margin-top: 25px"></p>
+</div><!-- Contents Main Container -->
+<div id="contentsMainContainer">
+
+#set($myVar =2)
+#set($childVar =1)
+#if(!$navigationsStandardMenu.empty)
+      <p class="mapaSiteTitle">1.  <a href="${req.ContextPath}/">HomePage</a></p>
+      <p class="contentsPageSep" style="margin: 15px 0 10px 0"></p>
+    #foreach($element in $navigationsStandardMenu.elements.iterator())
+        <p class="mapaSiteTitle">$myVar.  <a href="${req.ContextPath}/portal$element.url">$element.Title</a></p>
+        <p class="contentsPageSep" style="margin: 15px 0 10px 0"></p>
+        #if($element.elementType == "menu")
+            <ul class="mapaSiteListLevel1">
+            #set($childVar =1)
+               #foreach($childElement in $element.elements.iterator())
+                    <li>$myVar.$childVar <a href="${req.ContextPath}/portal$childElement.url">$childElement.Title</a></li>
+                    #set($childVar = $childVar+1)    
+               #end
+            </ul>
+         #end
+        #set($myVar = $myVar+1)
+    #end
+#end



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


Mime
View raw message