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

Show section when other file section holds files #10

Open
trych opened this issue Jun 15, 2022 · 1 comment
Open

Show section when other file section holds files #10

trych opened this issue Jun 15, 2022 · 1 comment

Comments

@trych
Copy link

trych commented Jun 15, 2022

Hi there,

I want to conditionally show a file section when another file section holds at least one file, otherwise it should be hidden.
I could test for the page holding any files with a specific template, but I don't understand how I can access the page.files collection in the whenQuery field. Is there any way to do that?

Thanks!

@rasteiner
Copy link
Owner

Currently you don't have access to sections, just what the "page model" holds (that is "content" which is stored by fields).

I have to investigate if and how we can access sections, because they don't keep their data in the global store

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants