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

Query entries by relations in a link it field? #83

Open
hiasl opened this issue Nov 20, 2020 · 0 comments
Open

Query entries by relations in a link it field? #83

hiasl opened this issue Nov 20, 2020 · 0 comments

Comments

@hiasl
Copy link

hiasl commented Nov 20, 2020

I need to find an entry, that has a certain other entry selected in a linkit field. Like relatedTo queries in Craft.
e.g. (fantasy code):
#set entry = craft.entries.linkit(otherEntry).one()
or
#set entry = craft.entries.linkit({targetElement: otherEntry, field: 'linkitField'}).one()

is this possible?

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