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!

_CallToAction.getAll(params)

Function to get the CTAs list of the current blog. Pass the parameters to filter out the result.

{% set cta = _CallToAction.getAll({'title': 'test', 'keywords': 'keyword'}) %}

Parameters

Parameter
Type
Required
Description

params['title']

string

no

Cta title

params['description']

string

no

Cta description

param['keywords']

string

no

Cta keywords

Example Response

[
  {
   "id":"3",
   "guid":"d3facf37-7e21-4567-9e72-0ffc18e5f455",
   "title":"Test to cta",
   "description":"Test to cta Test to cta",
   "blog":{
      "id":"1",
      "title":"Wedding Groups"
   },
   "button":{
      "text":"",
      "url":"",
      "backgroundColor":null
   },
   "media":{
      "guid":null,
      "id":null,
      "cloudName":null,
      "path":null
   },
   "backgroundColor":null
	}
]

Response Description

Attribute
Description

id

CTA id

guid

CTA GUID

title

CTA title

description

CTA description

backgroundColor

Background color

Blog Details

Attribute
Description

id

Blog ID

title

Blog title

Button Details

Attribute
Description

text

Button text

url

Button URL

backgroundColor

Button background color

Media Details

Attribute
Description

guid

Media GUID

id

Cloudinary Media ID

cloudName

Cloudinary Cloud name

path

Cloudinary Media cloud path

_CallToAction.getAll(params)