How can I use {content-options} to create a page label?

Hi,

I have the following piece of scaffolding and reporting macro code in a live template:

{list-data:provider}
{content-options:parent=Add a new System}
{list-data}

...

{hidden-data}
{report-table}
{local-reporter:data}
{local-reporter}
{report-on:injected=true}_{add-label:provided_by_%data:provider%}{report-on}
{report-table}
{hidden-data}

The purpose is obviously to label each new page with the label "provided_by_system_name", where system_name is the page title of the selected system in the "provider" list-data. When I didn't get it to work (it does work with list-data that is made up of hard coded options), I tried this, just to see what %data:provider% returns:

{report-table}
{local-reporter:data}
{local-reporter}
{report-on:injected=true}%data:provider%{report-on}
{report-table}

To my utter surprise, this is what I got:

page: Integration_Platform v.2 (295131)

I realize the selection ends up as a link (which is great by the way), but the string returned by %data:provider% is not very useful when it comes to construct a string for the {add-label} macro...

What to do?

[Update]
If I stick

{report-info:data:provider}

in the same {report-table} section it dutifully renders as:

Integration_Platform

which is what I wanted in the first place. But I can't piece it together so that that string feeds the {add-labels} macro. So close, but no cigar yet...

Cheers,

/Martin
 
sad I’m frustrated
Inappropriate?
1 person has this question

User_default_medium