getkirby / kql

Kirby's Query Language API combines the flexibility of Kirby's data structures, the power of GraphQL and the simplicity of REST.
https://getkirby.com
MIT License
145 stars 5 forks source link

calling kirby and custom site methods #6

Closed bnomei closed 2 years ago

bnomei commented 4 years ago

calling kirby.site and custom method does not seem to work. examples: kirby.site.mailjetContactslists

but does kirby.site.url

i guess that is intended. but why can any custom page method/field be called but not on site-object?

bnomei commented 4 years ago

i will port them to collections for now kirby.collection('mailjetContactslists')

bastianallgeier commented 4 years ago

I think we need a whitelist for such custom methods.

bastianallgeier commented 2 years ago