Hi Guillaume,
thanks for taking care of this issue. I also think the macro needs an
update. I remember there was a mail from Daniel Kulp to [email protected]
that explained what to do. I've attached the mail, but probably it's
easier to grab and copy the macro from another space.
Thanks,
Tammo
On 12.06.2010 08:54, Guillaume Nodet wrote:
> Sending to dev@ as this does not really have to be private.
>
> Here is the template:
>
> IIRC, the macro renderPage need to be changed.
> I'll try to fix it with the one from another template and reexport the space
> on monday (ping me if I forget).
>
> ================
> ##
> #macro (renderPage $title)
> #set($globalHelper = $action.getGlobalHelper())
> #set($renderer = $globalHelper.getWikiStyleRenderer())
> #foreach ($child in $page.space.pages)
> #if ($child.title.equals($title))
> #set ($content =
> $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim())
> $content
> #end
> #end
> #end
> ##
> <!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.
> -->
> <html>
> <head>
> <link href="http://people.apache.org/~mriou/ode/site/default.css"
> rel="stylesheet" type="text/css"/>
> <link href="http://people.apache.org/~mriou/ode/site/type-settings.css"
> rel="stylesheet" type="text/css"/>
> <title>
> Apache ODE -- $page.title
> </title>
> </head>
>
> <body>
>
> <!-- Start Border -->
> <div id="border">
> <img src="http://people.apache.org/~mriou/ode/site/images/border-top.jpg"
> alt="" class="block" />
>
> <!-- Start Main Wrapper -->
> <div id="wrapper">
>
> <!-- Start Header -->
> <div id="header">
> <img src="
> http://people.apache.org/~mriou/ode/site/images/top-banner.gif" alt="Welcome
> to Apache ODE" class="block" />
> </div>
> <!-- End Header -->
>
> <!-- Start Navigation Bar -->
> <div id="navbar">$autoexport.breadcrumbs($page)</div>
> <!--`End Navigation Bar -->
>
> <!-- Start Left Column -->
>
> <div id="leftcolumn">
> <div class="mainnav">
> #renderPage("SideNav Main")
> </div>
> <br />
> <div class="mainnav">
> #renderPage("SideNav Documentation")
> </div>
> <br />
> <div class="mainnav">
> #renderPage("SideNav Contributing")
> </div>
>
> </div>
> <!-- End Left Column -->
>
> <!-- Start Center Column -->
> <div id="centercolumn">
>
> $body
>
> <br />
> </div>
> <!-- End Center Column -->
>
> <div id="footer">
> <em><a href="$confluenceUri/pages/editpage.action?pageId=$page.id">Edit
> page</a></em><br/>
> <em>Design and artwork by <a href="mailto:[email protected]">Kelly
> Thompson</a></em>
> </div>
>
> </div>
> <!-- End Main Wrapper -->
>
>
> <div id="bottomborder"><img src="
> http://people.apache.org/~mriou/ode/site/images/border-bottom.jpg"
> class="block" /><br /><br /></div>
> </div>
> <!-- End Border -->
>
> </body>
> </html>
> ==============
>
> On Fri, Jun 11, 2010 at 21:25, Rafal Rusin <[email protected]> wrote:
>
>> Great.
>> We need to fix left navigation tab from http://ode.apache.org/.
>> When you enter here:
>>
>> https://cwiki.apache.org/DIRxDEV/exporting-a-confluence-space-as-a-website.html
>> you will see what to do in order to modify auto export html template.
>> First, could you copy paste this template and send here? Then we'll
>> try to modify it and give you back fixed version.
>>
>> On 11 June 2010 15:24, Guillaume Nodet <[email protected]> wrote:
>>> I don't think I can grant access, you'd have to ask infra for that, but I
>>> should be able to do any manipulation you need if you tell me what to do.
>>>
>>> On Fri, Jun 11, 2010 at 12:24, Rafal Rusin <[email protected]>
>> wrote:
>>>
>>>> Hello,
>>>>
>>>> I'm not sure, who to ask, but we need PMC members admin rights in
>>>> order to fix ode.apache.org (html export plugin template).
>>>> Matthieu can do this, but AFAIK, he's on vacations.
>>>> Is there someone here to grant such rights?
>>>>
>>>> --
>>>> Regards,
>>>> Rafał Rusin
>>>>
>>>
>>>
>>>
>>> --
>>> Cheers,
>>> Guillaume Nodet
>>> ------------------------
>>> Blog: http://gnodet.blogspot.com/
>>> ------------------------
>>> Open Source SOA
>>> http://fusesource.com
>>>
>>
>>
>>
>> --
>> Regards,
>> Rafał Rusin
>>
>
>
>
--
Tammo van Lessen - http://www.taval.de
--- Begin Message ---
I'm sending this out to committers@ because this affects a LOT of projects and
everyone needs to be aware of it.
Recently, Infrastructure had to upgrade Confluence from 2.10 to 3.2 so that we
can get proper security fixes and support from Atlassian as well as get it to
perform "acceptably" on thor. However, 3.2 is not compatible with 2.10 in
many ways and requires some changes. In particular:
1) "Top and Left Navigation" theme and the alternative version of it are not
compatible at all. Any spaces using those themes need to switch to another
theme.
2) Any custom autoexport templates will probably need to be updated. The
underlying objects that most templates were calling have changed. The normal
symptom is things like navigation panels not appearing or quicklinks areas not
rendering and such. Those all require changes to the template. Changes
that I know are likely to be required:
a) The velocity macro things don't seem to work at all. I ended up having
to inline the stuff the macros were doing. No idea why. A Velocity
expert may be needed here.
b) $action.getGlobalHelper() needs changing to $action.getHelper()
c) Getting a page list requires using the pageManager. However, using the
pageManager, you can get a page directly:
#set($child = $pageManager.getPage($page.space.key,"Banner"))
To give you an idea of what needs to be done, I've stuck a diff of what was
required for the CXF template at:
http://people.apache.org/~dkulp/diff.txt
I know a lot of spaces were using templates derived from the same templates
CXF was using so the above diff may be pretty usable directly.
If you have further questions or issues, please raise them on
[email protected].
Thanks!
--
Daniel Kulp
[email protected]
http://dankulp.com/blog
signature.asc
Description: This is a digitally signed message part.
--- End Message ---