Skip to main content

cmsParentByRequestHost

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

cmsParentByRequestHost: CmsParent!

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.)