Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Query sites info #123

Closed
cpecher-wcd opened this issue Jul 30, 2018 · 3 comments
Closed

Query sites info #123

cpecher-wcd opened this issue Jul 30, 2018 · 3 comments

Comments

@cpecher-wcd
Copy link

Is there a way to query all the sites that are available in craft? It would be great to build e.g. a language selector. Interesting fields could be siteId, primary, name, handle, language, hasUrl, baseUrl and sortOrder.

@markhuot
Copy link
Owner

Not yet, but I can get this added in. Good request!

markhuot added a commit that referenced this issue Jul 31, 2018
markhuot added a commit that referenced this issue Jul 31, 2018
markhuot added a commit that referenced this issue Jul 31, 2018
@markhuot
Copy link
Owner

This is implemented on dev-master now. You can query them with,

{
  sites {
    id
    name
    handle
  }
}

@markhuot
Copy link
Owner

Closing this issue. The fix is included in version 1.2.1.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants