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!

Search results for "{{ search.query }}"

No results found for "{{search.query}}". 
View All Results

_Menu.get(params)

Function to get navigation menu based on type(header or footer).

Example Usage

{% set menu = _Menu.get({'menuType': 'header'}) %}

Response Example

[
	{
		"id": "2584",
		"guid": "330ccbcb-bfd8-452d-b172-61cc630f115c",
		"blog_id": "1",
		"parent_id": null,
		"label": "Cricket",
		"menu_type": "header",
		"type": "blog",
		"menu_blog_id": "2",
		"menu_page_id": null,
		"position": "1",
		"status": "1",
		"updated_at": "1479811796",
		"created_at": "1479811796",
		"blogGuid": "d2c5396d-7743-4449-9d24-0d33de3sd530",
		"blogTitle": "Cricket",
		"blogStatus": "1",
		"is_default": null,
		"pageGuid": null,
		"pageTitle": null,
		"pageStatus": null,
		"pageExternalLink": null,
		"link": "http://network.cognitives.com.au/@cricket",
		"isExternal": 0,
		"children": []
	},
	{
		"id": "2585",
		"guid": "f70596e8-0aba-447a-b55d-d8c6d1318fba",
		"blog_id": "1",
		"parent_id": null,
		"label": "beauty",
		"menu_type": "header",
		"type": "blog",
		"menu_blog_id": "30",
		"menu_page_id": null,
		"position": "2",
		"status": "1",
		"updated_at": "1479811796",
		"created_at": "1479811796",
		"blogGuid": "3c5da4d4-1894-4140-9fb6-3d8827e345f9",
		"blogTitle": "beauty",
		"blogStatus": "1",
		"is_default": null,
		"pageGuid": null,
		"pageTitle": null,
		"pageStatus": null,
		"pageExternalLink": null,
		"link": "http://network.cognitives.com.au/@beauty",
		"isExternal": 0,
		"children": [
			{
				"id": "2586",
				"guid": "209d1fd9-8dc5-4728-a729-98b5a65e43d2",
				"blog_id": "1",
				"parent_id": "2585",
				"label": "beauty one",
				"menu_type": "header",
				"type": "blog",
				"menu_blog_id": "30",
				"menu_page_id": null,
				"position": "1",
				"status": "1",
				"updated_at": "1479811796",
				"created_at": "1479811796",
				"blogGuid": "3c5da4d4-1894-4140-9fb6-3d8827e345f9",
				"blogTitle": "beauty one",
				"blogStatus": "1",
				"is_default": null,
				"pageGuid": null,
				"pageTitle": null,
				"pageStatus": null,
				"pageExternalLink": null,
				"link": "http://network.cognitives.com.au/@beauty",
				"isExternal": 0
			}
		]
	}
]

_Menu.get(params)