Main Content

Magnolia Community Forums: Get help with Magnolia: DelegatingMultiValueTransformer rendering problem

  • hpan
    Full name: Hao Pan
    Posts: 1
    Last post: Apr 5, 2017 5:11:11 AM
    Registered on: Apr 5, 2017
    DelegatingMultiValueTransformer rendering problem
    #1 by hpan on Apr 5, 2017 5:11:11 AM

    Hi, I'm new to Magnolia.

    I have a problem when using DelegatingMultiValueTransformer, which is encouraged to be used as it's more versatile.

    The stored values become like this:
    shoppingList0, shoppingList1, shoppingList3.

    I just cannot figure out how to use "list" to render all of them.

    As we don't know how many fields there will be, we cannot pre-define the numbers of the rendered field. As consequence, we need list the result to render all of them.

    The problem is how to do it. The stored values are not a list...

  • tgregovsky
    Full name: Tomáš Gregovský
    Posts: 7
    Last post: Aug 22, 2017 7:37:51 AM
    Re: DelegatingMultiValueTransformer rendering problem
    #2 by tgregovsky on Apr 5, 2017 2:44:44 PM

    are these just a values or they are nodes? In second case you may use cmsfn.children(content) which should gives you list of all of them.

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon