Problem with Metadata macro in page template (Confluence 4.1.9)

I'm using Confluence 4.1.9 and I'm having trouble with the "metadata" macro in a page template.

I figured out that the wiki markup for this is {details} as in:

{details}

|Field1|Some info|
|Field2|More info|
|Field3|The last info|

{details}

I've pasted this code into a the body of a page template and it appears to work correctly when I preview the template. When I try to create a page from this template, I just get an empty Metadata macro block, like this:

The table is missing from the newly created page.

I've tried searching the knowledge base, but can't find any reports of this problem. I'm not sure if this is a bug, or if I'm doing something wrong and would appreaciate any advice.

2 answers

Hi Craig!

In fact, did you try typing all this data instead of pasting it on the body of the page?

If you just paste the code, since confluence 4.x changed from wiki markup to XHTML, maybe the content will not be rendered. However if you type the data it should work.

Hope it helps!

Hi Bruna,

Thank you for the response, but I don't think it is a problem with pasting.

I typed the wiki markup (shown in my question) directly into the edit box for the template I created. I didn't cut-and-paste from another page.

When I preview the template, the preview looks correct and shows the table inside the metadata macro. But, when I try to create a page from the template, the table dissapears as shown in the screenshot.

I'm guessing that this is a bug in 4.1.9, but I haven't been able to test the newer versions of Confluence with the new template editor to see if it still happens. Perhaps someone with a newer version of Confluence could test it and see if it continues to be a problem?

Thank you,

A coworker stumbled across a partial solution to this problem. Apparently, it will work if you use form markup inside the {details} macro. But only the fields that have a variable associated with them will show up when a page is created from the template.

Here is an example that does work in Confluence 4.1.9:

{details}
 
Field1: @VAR1@
Field2: @VAR2@
Field3: @VAR3@

{details}

If this is the intended behavior for this macro, it should be documented somewhere.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

912 views 23 12
Join discussion

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