{repeating-data}
Plugin: Scaffolding Plugin
Allows the dynamic addition and deletion of repeating sections.
Description
Any standard wiki content can be contained inside the body.
Usage
Parameters
| Name |
Required |
Default |
Description |
| [default]/name | | | The name of the repeating section. Must be unique to the scaffold. |
| initialRows | | | The number of rows to have in the section initially. Saves users from having to hit '+' repeatedly on a new page. |
| order | | ascending | If set to 'descending', the content will be sorted in in reverse order, and new rows will be added to the top of the repeating section. |
Examples
Contact Details
See Also
Just a question.
Is it possible to display the reference (or index) of an repeating-data entry in the repeating-data itself ? Haven't got it to work.
e.g.
{repeating-data:rdINPUT} {report-info:reference:value} {text-data:txtTEXT}{text-data} {repeating-data}Reporting isn't aware of what context Scaffolding might be in at present. It's on the todo list (I believe there's even an issue in Scaffolding's JIRA project), but essentially the answer is presently no.
Wow fast response. Too bad that it's not so easy. So i need just another workaround to create unique ids for each rows.
Perhaps i try something with pageid and eval data.
Thx for answer.
It would be great if you could add to the top, rather than add always to the bottom of the list.
This macro adds a excess newline, so e.g. it breaks lists, tables etc. How can I fix this?
I don't believe it actually adds any extra characters, rather that lists and tables don't work because each row has to be rendered individually, so Confluence can't combine multiple rows together into tables or lists. There's pretty much nothing that can be done about this unfortunately.
What effect are you trying to achieve? There may be an alternate way of doing it.
I figured out a way to generate lists, combining it with the Confluence Formatting macros from Adaptavist:
{ol} {repeating-data:List}{li}{text-data:Text}{li}{repeating-data} {ol}It doesn't display the bullet points while you're editing, but works fine when viewing. You can also use {ul} for unordered lists.
This doesn't work for tables, however, due to the fact that tables render differently than other content block types.
I am attempting to gather metadata from a repeating-data section of my wiki page and display it in a checklist-metadata in its parent page. Is there a know way of retrieving that data? When I attempt to retrieve it I receive a blank column in the checklist-metadata.
{repeating-data:Repeating Data|initialRows=1} |h2. Menu File:{list-data:menufile1|blank=true}{list-option}**{list-option} {table-data:Editable Table\|initialRows=1} ||Modification||Group Name||Menu Link Name||Menu Link Target Panel||Developer|| | {list-data:Modification}{list-option}Add{list-option}{list-data} | {text-data:grpname}Group Name{text-data} | {text-data:menulinkname}Menu Link Name{text-data} | {text-data:trgtpanel}{text-data} | {list-data:developer}{list-option}**{list-option}{list-data} | {table-data}| {repeating-data}I'm not exactly sure what you mean by a 'checklist-metadata'. Could you elaborate a little on what you're trying to achieve? What data are you trying to get out? What is the wiki markup you currently have in the parent page?
Thank you for the quick response. I am pulling the metadata from the child page(see code in previous post) and displaying it into the parent page (see code below). Does the repeating data plugin store the metadata in a different data type? It would seem that this metadata would have to be in some sort of array-like data type.
{lozenge:icon=!608.jpg!|title=NEW Menu QC|color=blue} {create-page:template=QC LIVE|prefix=QC |target=Edit|live=true|prompt=Please enter your QC number. NOTE:The QC prefix is added automatically.}Click here to create a page {create-page} {lozenge} {checklist:QC Number|parent=Miles Playground|depth=10|label=menuproject} {checklist-metadata:Modification} {checklist-metadata:grpname} {checklist-metadata:menulinkname} {checklist-metadata:trgtpanel} {checklist-metadata:developer} {checklist}Scaffolding and the Metadata plugins store their data in different locations. Scaffolding (and Reporting) can read metadata values, but not write to them, and Metadata basically ignores the existence of Scaffolding altogether. There was an attempt a while back to get the two playing together nicely, but it ended up being more complex than anticipated and never eventuated.
So the short answer is, I don't think you can do what you're trying to do directly.
I am not able to rearrange the a repeating data position. (Move a new created repeat data above the old ones) . Any help
//
Thanks,
Abhi
Hi there,
I would suggest creating a bug report with the details of your problem, including plugin and Confluence version numbers, etc. It's easier to manage issues from there.