Les Hazlewood wrote:
I believe that Niklas' plan is to use confluence exporting - as soon
as he could get the theme cleared.  But if we just start out with a
Wicket-derived theme, that'd be the easiest I think...

I'm just so thrilled that he has volunteered to help us out that I'd
like to see _any_ solution at this point, Confluence-based or not :)
we just have to redesign the template for JSecurity in the auto-export plugin. We are currently using the default template.

Here is the one we use for Directory (seems to be Velocity script):

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
##
#set ($images = "http://directory.apache.org/staticresources/images";)
#set ($siteroot = "http://directory.apache.org";)
#set ($pageContentHeaderEnabled = false)
##
#if ( $page.title.equals("Index") )
   #set ($title = "LDAP and Kerberos, entirely in Java")
#else
   #set ($title = $page.title)
#end
##
#macro (renderPage $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)) && ( 
$child.contentStatus.equals("current") ) )
           #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))

           $content
       #end
   #end
#end
##
<html>
<head>
<link rel="shortcut icon" 
href="http://directory.apache.org/staticresources/images/server-icon_16x16.png";>
 <link rel="alternate" type="application/rss+xml" title="RSS" 
href="http://cwiki.apache.org/confluence/createrssfeed.action?types=blogpost&statuses=created&statuses=modified&spaces=DIRxSITE&labelString=&rssType=rss2&maxResults=5&timeSpan=99&publicFeed=true&title=Apache+Directory+News+RSS+Feed";>
 <!-- $PAGETITLE -->
       <title>Apache Directory - $title</title>
       <link href="http://directory.apache.org/staticresources/green.css"; rel="stylesheet" 
type="text/css">
       <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<script src="http://www.google-analytics.com/urchin.js"; type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1358462-1";
urchinTracker();
</script>
   </head>
   <body>
       <a name="top"></a>
       <div id="container">
           <div id="header">
               <div id="subProjectsNavBar">
                   <a href="http://directory.apache.org/";><strong>Apache 
Directory</strong></a>
                   &nbsp;|&nbsp;
                   <a href="http://directory.apache.org/apacheds/1.0/";>ApacheDS 
1.0</a>
                   &nbsp;|&nbsp;
                   <a href="http://directory.apache.org/apacheds/1.5/";>ApacheDS 
1.5</a>
                   &nbsp;|&nbsp;
                   <a 
href="http://directory.apache.org/triplesec/";>Triplesec</a>
                   &nbsp;|&nbsp;
                   <a href="http://directory.apache.org/studio/";>Studio</a>
               </div><!-- subProjectsNavBar -->
           </div><!-- header -->
           <div id="content">
               <div id="leftColumn">
                   <div id="navigation">
                       #renderPage("Navigation")
                   </div><!-- navigation -->
                   <br />
                   <hr width="75%"/>
                   <br />
                   <!-- div align="center">
                       <a href="http://apachecon.com/2007/EU/"; target="_top"><img 
src="http://www.apache.org/ads/ApacheCon/2007-europe-125x125.png"; border="0" width="125" height="125" alt="ApacheCon 
Europe 2007"></a>
                       <a href="http://people.apache.org/calendar.html#200711"; target="_top"><img 
src="http://www.apache.org/ads/ApacheCon/2007-usa-125x125.png"; border="0" width="125" height="125" alt="ApacheCon US 
2007"></a>
                   </div -->
               </div><!-- leftColumn -->
               <div id="rightColumn">
                   <div id="editPage"><a href="$confluenceUri/pages/editpage.action?pageId=$page.id" 
onMouseOver="document.getElementById('editPageImage').src='http://directory.apache.org/staticresources/images/edit_over.png';" 
onMouseOut="document.getElementById('editPageImage').src='http://directory.apache.org/staticresources/images/edit_out.png';"><img id="editPageImage" 
src="http://directory.apache.org/staticresources/images/edit_out.png"; width="16" height="16" border="0" title="Edit this page" alt="Edit this 
page"></a></div>
                   $body
               </div><!-- rightColumn -->
               <div id="endContent"></div>
           </div><!-- content -->
           <div id="footer">&copy; 2003-2008, <a href="http://www.apache.org";>The Apache Software 
Foundation</a>&nbsp;-&nbsp;<a href="http://directory.apache.org/privacy-policy.html";>Privacy Policy</a></div>
       </div><!-- container -->
   </body>

--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to