Skip to content
Discussion options

You must be logged in to vote

Hi Duncan,

I've looked into this with my colleague. He found a solution by iterating over the data like this:

        @foreach($proposition->newAugmentedInstance()->get('pdp_content') as $item)
            @includeIf('components.organisms.blocks.'.$item->type, ['content' => $item])
        @endforeach

and casting the data to an array via the model.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ghost
Comment options

@duncanmcclean
Comment options

@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant