Ashish wrote:
We can also look at using Theme Builder plugin for creating a nice looking
wiki.
Yes, it's something I wanted to do for a long time; We have some kind of
experience here at Direrctory, we could copy what we have done and have a
less 'geeky' web site...
Just point me at the details. Will take over from there. Will be
bogged down for couple of weeks, but
somehow will find time for this. I also have a personal Confluence
licence, so can play around in my local setup :-)
The very best would be to do all the modification locally, as the
modifications done on the ASF wiki will take 2 hours to be reflected on
the web...
If you have any question regarding the way to make it work, feel free to
ask Pierre-Arnaud Marcelot ([email protected]) who did it.
The Directory template is :
<!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>
|
<a href="http://directory.apache.org/apacheds/1.0/">ApacheDS
1.0</a>
|
<a href="http://directory.apache.org/apacheds/1.5/">ApacheDS
1.5</a>
|
<a
href="http://directory.apache.org/triplesec/">Triplesec</a>
|
<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">© 2003-2009, <a href="http://www.apache.org">The Apache Software
Foundation</a> - <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