rasteiner / k3-whenquery

Conditionally show fields and sections. Better.
MIT License
64 stars 1 forks source link

`::count()` not working in builder field #4

Closed owzim closed 2 years ago

owzim commented 2 years ago

https://github.com/TimOetting/kirby-builder

I am not sure if whenquery is working at all in the builder field.

From a quick glance at the code it does not seems so, since it is refercning the content of the page as context.

https://github.com/rasteiner/k3-whenquery/blob/86f55111fb018f8765c8526f560f09a7c3fcba1f/src/index.ts#L22

rasteiner commented 2 years ago

have tested it in blocks field (which should be the same problem). Could you test it in the builder?

You'd have to download the v0.2 tag: https://github.com/rasteiner/k3-whenquery/archive/refs/tags/0.2.0.zip

owzim commented 2 years ago

Working great now, thanks!

When will this update be available through composer?