You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2006/11/04 01:48:22 UTC

svn commit: r471083 - /incubator/openejb/trunk/website/src/vm/openejb_autoexport.vm

Author: dblevins
Date: Fri Nov  3 16:48:21 2006
New Revision: 471083

URL: http://svn.apache.org/viewvc?view=rev&rev=471083
Log:
template that adds the right side bar

Modified:
    incubator/openejb/trunk/website/src/vm/openejb_autoexport.vm

Modified: incubator/openejb/trunk/website/src/vm/openejb_autoexport.vm
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/website/src/vm/openejb_autoexport.vm?view=diff&rev=471083&r1=471082&r2=471083
==============================================================================
--- incubator/openejb/trunk/website/src/vm/openejb_autoexport.vm (original)
+++ incubator/openejb/trunk/website/src/vm/openejb_autoexport.vm Fri Nov  3 16:48:21 2006
@@ -35,6 +35,35 @@
         #end
     #end
 #end
+#macro (renderRightSidePage $title)
+    #set($globalHelper = $action.getGlobalHelper())
+    #set($renderer = $globalHelper.getWikiStyleRenderer())
+
+    ##
+    ## FIXME: Must be a more efficent way to find a page...
+    ##
+
+    #foreach ($child in $page.space.pages)
+        #if ($child.title.equals($title))
+            #set ($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim())
+
+            ##
+            ## HACK: Remove the leading <P> and trailing </P>
+            ##
+
+            #set ($content = $content.replaceAll("^<[pP]>|</[pP]>$", "") )
+            ##set ($content = $content.substring(3, $content.length()))
+            ##set ($end = $content.length() - 4)
+            ##set ($content = $content.substring(0, $end))
+    <td width="120" height="5" valign="top" align="left"><img src="http://incubator.apache.org/openejb/images/dotTrans.gif" width="350" height="11" border="0">
+<div id="RightContent">
+$content
+</div>
+</td>
+
+        #end
+    #end
+#end
 ##
 #macro (pageContent)
     <div id="PageContent">
@@ -187,7 +216,8 @@
         #pageContent()
      </p>
     </td>
-<!--    <td width="120" height="5" valign="top" align="left"></td>   -->
+
+        #renderRightSidePage("${title}Links")
 
    </tr>
    <tr height="5">