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'}) %}
| Parameter | Type | Required | Description |
|---|
| params['title'] | string | no | Cta title |
| params['description'] | string | no | Cta description |
| param['keywords'] | string | no | Cta keywords |
[
{
"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
}
]
| Attribute | Description |
|---|
| id | Blog ID |
| title | Blog title |
| Attribute | Description |
|---|
| text | Button text |
| url | Button URL |
| backgroundColor | Button background color |
| Attribute | Description |
|---|
| guid | Media GUID |
| id | Cloudinary Media ID |
| cloudName | Cloudinary Cloud name |
| path | Cloudinary Media cloud path |