Cognitives

Cognitives.io Documentation

Welcome to the Cognitives developer hub. You'll find comprehensive guides and documentation to help you start working with Cognitives as quickly as possible, as well as support if you get stuck. Let's jump right in!

getPageData(pageSlug)

Function to get page attributes based on its slug

{% set pageData = _Page.getPageData('contact-us')%}

Parameters

Parameter
Type
Required
Description

pageSlug

string

yes

Page slug

Example Response

{
  "id" : "ID",
  "guid" : "GUID",
	"slug": "contact-us",
	"title": "Contact Us",
	"content": "Contact Us page contents.",
  "meta": {
    "title": "meta title",
    "keyword": "meta keywords",
    "description" : "meta description"
  },
  "media" : {
    "id" : "cloudinary Public Id",
    "cloudName" : "cloudinary cloud name",
    "path" : "media path"
    
  }
	"keywords": "keywords",
  "externalLink" : "External Link"
}

Response Description

Attribute
Description

id

Page ID

guid

Page GUID

slug

Page slug

title

Page title

content

Page content

meta_title

Page meta title

meta_keyword

Page meta keywords

meta_description

Page description

keywords

Page keywords

getPageData(pageSlug)