Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snippet within plugin breaking on 3.2.x Illegal offset type #1883

Closed
carstengrimm opened this issue Jun 27, 2019 · 1 comment

Comments

2 participants
@carstengrimm
Copy link

commented Jun 27, 2019

as discussed here:
https://forum.getkirby.com/t/snippets-breaking-changes-on-3-2/14735?u=carstengrimm

on V3.2. it seems that snippets within a plugin seem to break the whole thing.
one-page style setup with running though snippets via $page->template() as snippet name seem to fail:

<?php foreach($page->children()->listed() as $p): ?>
        <?php snippet($p->template(), ['data' => $p]); ?>
<?php endforeach ?>

Kirby_CMS_Debugger_-_Brave_2019-06-27_02-08-59

@bastianallgeier

This comment has been minimized.

Copy link
Contributor

commented Jul 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.