Is there a way to use {get-data} within a link or {add-page} macro?
I want to create a page via a click on a link (or whatever) which name is composed out of text inputs in the same scaffold.
Had a look at the "Editable link (examples) Scaffold" but that will not work for me.
Want it to use it like this: {link-page:name={get-data:something}|template=sometemplate} and so forth...
thanks
Had a look at the "Editable link (examples) Scaffold" but that will not work for me.
Want it to use it like this: {link-page:name={get-data:something}|template=sometemplate} and so forth...
thanks
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.
-
Inappropriate?You can use '%data:XXX%' in the name values and it will get injected with Scaffolding data. You can also use any other Reporting/Supplier values as well. So to have a page that uses the current page name and a Scaffolding value called 'foo', you would do something like this:
{link-page:name=%page:title% - %data:foo%|template=something|live=true}The {report-info:data:foo} page{link-page}
-
Inappropriate?Thanks fpr your reply. But I still does not work. Its not complaining anymore, but instead of the data I get blanks. Donno why it wont work, heres my code
{table-data:Protokolle}
|| Wann || Was || Agenda ||
| {text-data:Wann}| {text-data:Was} | {link-page:name=%page:title% - %data:Wann%|template=Infopool|live=true}The {report-info:data:Wann} page{link-page} |
{table-data}
cheers
Johannes -
Inappropriate?I suspect you are using a version of Reporting/Scaffolding earlier than 3.2.0? That being the case, the above won't work - we only added the ability for Reporting to 'know' where it was inside Scaffolding table-data or repeating-data in 3.2.0 of both plugins. Same applies for the Linking plugin in this case.
The only workaround in the meantime would be to use something like the Replace and Render plugin to inject the {get-data} value into the {link-page} macro instead. A bit ugly, but would work something like this:
{replace-and-render}
{replace-item:%title%}{report-info:page:title}{replace-item}
{replace-item:%wann%}{get-data:Wann}{replace-item}
{replace-body}{link-page:name=%title% - %wann%|template=Infopool|live=true}The %wann% page{link-page}{replace-body}
{replace-and-render}
That would go inside your last table row. -
I try this, but it doesn't work:
{replace-and-render}
{replace-item:%insert%}{get-data:name}{replace-item}
{replace-body}
{table-data:Table}
| {text-data:name}{text-data} | {link-page:name=%insert%|template=test}{get-data:name}new{get-data}{link-page}|
{table-data}
{replace-body}
{replace-and-render} -
Hi Stefan,
To get that working in that way, you would need to have the {replace-and-render} inside the {table-data} macro, otherwise it has no context on the current row's name.
However, my recommendation is to use Confluence 3.0 (3.1 support coming soon), Scaffolding 3.2 and just do this:
{table-data:Table}
| {text-data:name}{text-data} | {link-page:name=%data:name%|template=test}{get-data:name}new{get-data}{link-page}|
{table-data}
Loading Profile...



EMPLOYEE