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

Getting ID of field in a Volume Field Layout #54

Open
rogertinch opened this issue May 8, 2019 · 0 comments
Open

Getting ID of field in a Volume Field Layout #54

rogertinch opened this issue May 8, 2019 · 0 comments

Comments

@rogertinch
Copy link

If I'm using the Preparse Field inside of a Field Layout for a Volume, how do I access the ID of the field that is using that Volume? I'm trying to transform an image based on the field that is being used.

So for a heroImage assets field the Preparse Field would use a landscape transform while a portraitImage assets field would use a portrait transform.

Basically, I want the Preparse Field to be reusable across assets fields using the same Volume, but provide different transform sizes depending on the assets field.

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

1 participant