_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

ParameterTypeRequiredDescription
params['title']stringnoCta title
params['description']stringnoCta description
param['keywords']stringnoCta 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

AttributeDescription
idCTA id
guidCTA GUID
titleCTA title
descriptionCTA description
blogBlog details
buttonButton Details
mediaMedia Details
backgroundColorBackground color

Blog Details

AttributeDescription
idBlog ID
titleBlog title

Button Details

AttributeDescription
textButton text
urlButton URL
backgroundColorButton background color

Media Details

AttributeDescription
guidMedia GUID
idCloudinary Media ID
cloudNameCloudinary Cloud name
pathCloudinary Media cloud path