## #set ($images = "http://openejb.apache.org/images") #set ($siteroot = "http://cwiki.apache.org/OPENEJB") #set ($globalHelper = $action.getHelper()) #set ($renderer = $globalHelper.getWikiStyleRenderer()) ## #if ( $page.title.equals("Index") ) #set ($title = "Home") #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)) #set ($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim()) ## ## HACK: Remove the leading
and trailing
## #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 #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 leadingand trailing
## #set ($content = $content.replaceAll("^<[pP]>|[pP]>$", "") ) ##set ($content = $content.substring(3, $content.length())) ##set ($end = $content.length() - 4) ##set ($content = $content.substring(0, $end))![]() |
![]() |
![]() |
![]() |
![]() |
||||
![]() |
#set($child = $pageManager.getPage($page.space.key,"QuickLinks")) #set($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim()) #set ($content = $content.replaceAll("^<[pP]>|[pP]>$", "") ) $content | ![]() |
||||||
![]() |
![]() |
![]() |
![]() |
![]() |
||||
$body
|
![]() |
#if ($pageManager.getPage($page.space.key,"${title}Links"))
#set($child = $pageManager.getPage($page.space.key,"${title}Links"))
#set($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim())
#set ($content = $content.replaceAll("^<[pP]>|[pP]>$", "") )
$content
#end
|
||||||
![]()
|
![]() |