Documentation Center

The page root query

To fetch a Page, you must identify its namespace (1 for Tridion Sites, 2 for Tridion Docs), Publication ID, and either its Page ID or relative URL. Alternatively, you can also fetch a Page using only its Content Manager URI. Adding specific context data lets you fetch absolute links rather than relative ones.

The following page call fetches a Page using the identifiers of its namespace, Publication, and of the Page itself:
page(namespaceId: 1, publicationId: 26, pageId: 24113)

The above call fetches the page with identifier 24113 from the Tridion Sites Publication with ID 26.

To fetch a Page using its Content Manager URI only, include a call like the following in your query:
page(cmUri: "tcm:6-228-64")

The above call fetches the Page with the Tridion Sites Content Manager URI tcm:6-228-64, which uniquely identifies the item.

page(pageId: 275292, publicationId: 2287238, namespaceId: 1,
      contextData: [
      {uri:"taf:tcdl:render:link:relative", value:"false", type:BOOLEAN}])

The above call fetches the Page specified in the first three parameters, and ensures that links in the Page are rendered as fully qualified links, rather than relative links thanks to the last parameter, contextData.

Within a page call, just like within a typedPage call, you can also explore any Regions that the Page contains with the regions subquery.