use list-data with multiple options to filter in content-reporter

  • 1
  • Problem
  • Updated 1 year ago
Hi there,

I use a list-data with multiple content-options. The user can select one or more pages.

In the following content-report I try to only show the pages the user selected above. What I'm doing wrong?

Thanks for any suggestions! Cheers, Sebastian

Photo of Sebastian Fiechter

Sebastian Fiechter

  • 3 Posts
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of Kathryn Moye

Kathryn Moye

  • 223 Posts
  • 12 Reply Likes
Do you still need a solution?  I might be able to help.
Photo of Sebastian Fiechter

Sebastian Fiechter

  • 3 Posts
  • 0 Reply Likes
Hi Kathryn,

thanks for your reply. Yes I'm still interested in a good solution. We found a workaround but it's not very sexy.

Thanks, Sebastian
Photo of Kathryn Moye

Kathryn Moye

  • 223 Posts
  • 12 Reply Likes
Ok, let me know if this doesn't answer your question.  When you use a content-option, the page that is selected is stored as a page:id such that the page can be accessed directly by a keychain.

For instance, you can access the page title of the chosen page by using data:Instanzen>first>page:title. If you wanted some scaffold data on the page named "fieldx" then you would use data:Instanzen>first>data:fieldx. ("first" has to be there to remove the square brackets from the output of a list (it is kind of treated like an array output but for some reason the returned value still has the square brackets, this has caused many problems).

So, in your report you just need to do a local reporter with data:Instanzen>first as your key.
Hope this helps.


Photo of Sebastian Fiechter

Sebastian Fiechter

  • 3 Posts
  • 0 Reply Likes
Hi Kathryn,

I need to build the reporter with ALL selected elements from data:Instanzen. So "first" doesn't help. Any suggestions?

Thanks a lot, I appreciate your help!

Sebastian