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

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

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
Community showcase
Published Tuesday in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

208 views 2 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you