Skip to content

Bard output not converted to a Statamic Sets/collection. #634

Closed Answered by conceptjurn
conceptjurn asked this question in Help
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
@conceptjurn
Comment options

@duncanmcclean
Comment options

@conceptjurn
Comment options

Answer selected by conceptjurn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants