Confluence 4.1: custom wiki macro got broken and many pages aren't displayed properly

Artur Shnayder July 4, 2013

It seems one of custom macro got broken. It used to be wiki output format, now this field is missing.
There're only 2 non-commented lines in its template:

  h1. [$title]
 {include: $title}

All documents, which use the macro are not displayed properly, like below

h1. [Add a system calculated ad serving fee] {include: Add a system calculated ad serving fee} h1. [View and edit ad serving fees by ad server] {include: View and edit ad serving fees by ad server} h1. [View system calculated ad serving fees] {include: View system calculated ad serving fees} h1. [View placement/package specific ad serving fees] {include: View placement/package specific ad serving fees} h1. [Reporting & extracts for ad serving fees] {include: Reporting & extracts for ad serving fees} h1. [Map ad server to supplier (Photon)] {include: Map ad server to supplier (Photon)}

Is there anyway to restore macro's output format or create HTML one with the same function?

Thanks,

1 answer

0 votes
Artur Shnayder July 5, 2013

Actually full "wiki" formatted macro is below:

## No macro body
## Output is Wiki Markup
##
## Assume current space.
## Default root is current page, unless caller specifies different root.
#set ($key=$space.getKey())
#set ($root=$action.page)
#set ($thisPageTitle=$action.getPage().getTitle())
#if ($paramroot)
   #if ($paramroot=="parent")
      #set ($root=$action.getPage().getParent())
   #else
      #set ($root=$action.page)
   #end
#end
#set ($kids=$root.getSortedChildren())
#foreach ($page in $kids)
   #set ($title=$page.getTitle())
   ## check title to avoid including self if root is above this page
   #if ("$title"!="$thisPageTitle")
      h1. [$title]
     {include: $title}
   #end
#end
 
 
I would appreciate any help to convert it to HTTP one.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events