{report-info} problem
Hi,
I am new to Confluence but learning fast.
I am using the Scaffold macro as a template to allow quick and easy page creation.
I then want to display a list of these pages on the parent page in a table.
Also in this table I want to display two pieces of information from each child page.
I have learnt that metadata and scaffold are not compatible (YET) so I am trying to work around this by using the output of the {report-data} macro into a {metadata} macro.
I am currently stuck on the {report-data} macro part of this.
This is what my wiki text currently looks like:
______________________________________
{scaffold:Patent Topic}
|| Patent Title: | {page-info:title} ||
|| Patent Description: | {text-data:Description|type=line|width=500px}{text-data} ||
{scaffold}
{report-info:data:Description\|render=wiki}{report-info}
______________________________________
For some reason the {report-info} macro is not displaying the text which is entered into the {text-data:Description} field.
Any ideas?
Thanks Mick
I am new to Confluence but learning fast.
I am using the Scaffold macro as a template to allow quick and easy page creation.
I then want to display a list of these pages on the parent page in a table.
Also in this table I want to display two pieces of information from each child page.
I have learnt that metadata and scaffold are not compatible (YET) so I am trying to work around this by using the output of the {report-data} macro into a {metadata} macro.
I am currently stuck on the {report-data} macro part of this.
This is what my wiki text currently looks like:
______________________________________
{scaffold:Patent Topic}
|| Patent Title: | {page-info:title} ||
|| Patent Description: | {text-data:Description|type=line|width=500px}{text-data} ||
{scaffold}
{report-info:data:Description\|render=wiki}{report-info}
______________________________________
For some reason the {report-info} macro is not displaying the text which is entered into the {text-data:Description} field.
Any ideas?
Thanks Mick
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The best answer from the company
-
The problem here is the {scaffold} macro. If you add a {scaffold:XXX} macro around your fields, you need to add the 'XXX' value to your report-info keychain. In your example, it would be this:
{report-info:data:Patient Topic.Description|render=wiki}
However, {scaffold} has been optional (and in fact deprecated) since Scaffolding 2.x, so the simplest solution is to simple remove the {scaffold} macro altogether. A side effect of this is that any existing pages you have will 'forget' their data, because the extra scaffold layer is gone. But it will simplify your reports significantly.
The company says
this answers the question
-
Inappropriate?The problem here is the {scaffold} macro. If you add a {scaffold:XXX} macro around your fields, you need to add the 'XXX' value to your report-info keychain. In your example, it would be this:
{report-info:data:Patient Topic.Description|render=wiki}
However, {scaffold} has been optional (and in fact deprecated) since Scaffolding 2.x, so the simplest solution is to simple remove the {scaffold} macro altogether. A side effect of this is that any existing pages you have will 'forget' their data, because the extra scaffold layer is gone. But it will simplify your reports significantly.
The company says
this answers the question
-
Inappropriate?Hi David,
Thanks for the super quick response.
This has surely fixed my problem. Thanks for the tip about the deprecated {scaffold}
The report info is now working for me and I am able to slot this into a metadata macro and access it on the parent page.
This is a pretty clunky way of getting metadata and scaffold to work together, but it works. Is there any chance I am doing this the hard way and the metadata/scaffold compatibility thing has been resolved long ago?
Mick
I’m giddyup happy
-
No, still no real compatibility with Metadata and Scaffold. What features of Metadata do you need that Reporting can't handle? -
Inappropriate?Maybe I don't need to use metadata and I can just use reporting.
I am using the checklist macro to create an automated table for children pages and information within these pages.
____________
{checklist:name=Patent ID| parent = Patent Registry| depth=1| sort=created}
{checklist-metadata:Topic}
{checklist-metadata:Inventor}
{checklist-metadata:TopicStatus}{checklist}
____________
Within each child page I create a metadata value for Topic, Inventor and TopicStatus from the scaffold data using the {report-info} macro.
Can you see a simpler way?
Thanks
Mick
I’m Curious
-
Inappropriate?Ah, I see. You need metadata in the child pages for checklist to pick them up? Yeah, a bit of a hassle...
I don't know of any way to improve your current setup. You might want to talk to the developers of checklist to see if they know of one. I'm not sure what method they are using to pull out the metadata value (probably Lucene indexes), but there might be a way to configure it to get Scaffold data. Not sure...
1 person says
this answers the question
-
Inappropriate?OK thanks David.
I appreciate all the help.
My pages are going great now and this has been helpful to my overall Confluence Training.
I’m happy for all the help
Loading Profile...



EMPLOYEE