Skip to main content

cmsParentByDomain

Returns the CMS parent object associated with a given domain name. In a convention domain, this is the Convention itself. Otherwise, it's the RootSite.

cmsParentByDomain(
domain: String!
): CmsParent!

Arguments

cmsParentByDomain.domain ● String! non-null scalar

Type

CmsParent interface

A CMS parent is a web site managed by Intercode. It acts as a container for CMS content, such as pages, partials, files, layouts, variables, content groups, and user-defined GraphQL queries.

Most CMS parents are conventions, so their content will be convention-specific and scoped to that convention's domain name. The exception to this is the root site, which is what Intercode renders when there is no convention associated with the current domain name. (See the RootSite object for more details about this.)