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

support toolkit\obj #7

Closed
bnomei opened this issue Mar 21, 2020 · 2 comments
Closed

support toolkit\obj #7

bnomei opened this issue Mar 21, 2020 · 2 comments
Labels
type: feature 🎉 Adds a feature (requests → feedback.getkirby.com)

Comments

@bnomei
Copy link

bnomei commented Mar 21, 2020

if (is_a($value, 'Kirby\Cms\Collection') === true) {

add this

if (is_a($value, 'Kirby\Toolkit\Obj') === true) {
            return $value->toArray();
        }
@bnomei
Copy link
Author

bnomei commented Mar 21, 2020

or a new interceptor

bnomei added a commit to bnomei/kirby3-handlebars that referenced this issue Mar 21, 2020
related: getkirby/kql#7
Signed-off-by: Bruno Meilick <b@bnomei.com>
@bastianallgeier bastianallgeier added the type: feature 🎉 Adds a feature (requests → feedback.getkirby.com) label Jul 15, 2020
@bastianallgeier
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature 🎉 Adds a feature (requests → feedback.getkirby.com)
Projects
None yet
Development

No branches or pull requests

2 participants