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.
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.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.