_Blog.getBlog(networkBlog)
Function to get the details of the blog
Example Usage
{% set blog = _Blog.getBlog({'guid':'d2c5396d-7741-4449-9d24-0d33de3sd530'}) %}
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| guid | string | no | GUID of the blog |
Response Example
{
"id":"1",
"guid":"d2c5396d-7741-4449-9d24-0d33de3sd530",
"title":"Blog title",
"shortDescription":"aplle",
"type":"blog",
"url":"http://network.cognitives.com.au",
"featuredColor":"#9c10b3",
"isDefault":"1",
"status":"1",
"userHasBlogAccess":1,
"isBlogOwner":true,
"owner":{
"id":"18",
"guid":"22dd6cb6-5611-49ad-bf90-841dab7de24e",
"name":"Firstname Lastname",
"username":"username",
"email":"[email protected]",
"bio":"Info about user",
"display_name":"Firstname Lastname",
"media":{
"id":"o328r2ejlbitphpvydv5",
"cloudName":"cognitives",
"path":"http://res.cloudinary.com/cognitives/image/upload/v1473074998/o328r2ejlbitphpvyd.jpg"
}
},
"media":{
"thumb":{
"id":"cxkdrdddbn6ckezkrp41",
"cloudName":"cognitives",
"path":"http://res.cloudinary.com/cognitives/image/upload/v1470038651/cxkdrdddbn6ckezkrp.png"
},
"cover":{
"id":"mdro9ic1iicaq3gxkr4y",
"cloudName":"cognitives",
"path":"http://res.cloudinary.com/cognitives/image/upload/v1470894337/mdro9ic1iicaq3gxkr.jpg"
},
"structuredMedia":{
"url":"http://res.cloudinary.com/cognitives/image/upload/c_fill,dpr_auto,h_60,w_327/cxkdrdddbn6ckezkrp41",
"height":60,
"width":327
}
},
"total":{
"view":"10",
"article":"25",
"followers":"2",
"following":"0"
},
"createdDate":"Dec 01 2016",
"settings":{
"guid":"d2c5396d-7741-4449-9d24-0d33de3sd530",
"GoogleAnalyticsID":"aaaa-ssss-dddd-ffff-gggg",
"contact":{
"email":"[email protected]"
},
"location":{
"latitude":"",
"longitude":"",
"googlePlaceId":""
},
"social":{
"facebook":"http://facebook.com",
"twitter":"http://twitter.com",
"google":"http://google.com",
"linkedin":"http://linkedin.com"
}
},
"blogHeaderMenu":[
{
"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
}
]
},
],
"blogFooterMenu":[
{
"id":"1684",
"guid":"a7931664-6fff-43fb-b7d8-a8f309590cdf",
"blog_id":"1",
"parent_id":null,
"label":"aaaaa Blog",
"menu_type":"footer",
"type":"blog",
"menu_blog_id":"49",
"menu_page_id":null,
"position":"1",
"status":"1",
"updated_at":"1478843151",
"created_at":"1478843151",
"blogGuid":"7c425ca3-1c0a-40c2-a7c0-c1866228adf7",
"blogTitle":"Footer Blog",
"blogStatus":"1",
"is_default":null,
"pageGuid":null,
"pageTitle":null,
"pageStatus":null,
"pageExternalLink":null,
"link":"http://network.cognitives.com.au/@footer",
"isExternal":0,
"children":[
]
},
]
}
Response Description
| Attribute | Description |
|---|---|
| id | ID of the blog |
| guid | GUID of the blog |
| title | Title of the blog |
| shortDescription | Short description of the blog |
| type | blog or channel |
| url | Absolute URL of the blog |
| featuredColor | Featured color of the blog |
| isDefault | Whether the blog is default |
| status | Blog status. 1 - active, 0 - inactive |
| userHasBlogAccess | Whether the logged in user has blog access |
| isBlogOwner | Whether the logged in user is blog owner |
| owner | Blog owner details |
| media | Images of the blog. |
| total | Blog stats |
| createdDate | Blog created date |
| settings | Blog settings |
| blogHeaderMenu | Header Menu of blog |
| blogFooterMenu | Footer Menu of blog |
Owner details
| Attribute | Description |
|---|---|
| id | User ID |
| guid | User GUID |
| name | Name of the user |
| username | Username |
| User email | |
| bio | User bio |
| display_name | User display name |
| media | User media |
Media
| Attribute | Description |
|---|---|
| thumb | Thumb media details |
| cover | Cover media details |
Media Details
| Attribute | Description |
|---|---|
| id | Cloudinary ID of the image |
| cloudName | Cloudinary Cloud name |
| path | Cloudinary path of the image |
Blog stats
| Attribute | Description |
|---|---|
| view | Blog views |
| article | Blog articles |
| followers | Blog followers |
| following | Blog followings |
Blog Settings
| Attribute | Description |
|---|---|
| guid | Blog GUID |
| GoogleAnalyticsID | Google analytics ID |
| contact | Contact details |
| location | Location details |
| social | Blog social details |
Contact Details
| Attribute | Description |
|---|---|
| Contact email |
Location Details
| Attribute | Description |
|---|---|
| latitude | Latitude |
| longitude | Longitude |
| googlePlaceId | Google Place Id |
Blog Social Details
| Attribute | Description |
|---|---|
| Facebook link | |
| Twitter link | |
| Google link | |
| LinkedIn link |
Menu Details
| Attribute | Description |
|---|---|
| id | Menu ID |
| guid | Menu GUID |
| blog_id | Blog ID |
| label | Menu title |
| menu_type | Menu type i.e. header or footer |
| type | Menu item type i.e. blog or page or section |
| blogGuid | Blog GUID |
| blogTitle | Blog title |
| pageGuid | Page GUID |
| pageTitle | Page title |
| link | Menu item link |
| children | Sub menu items. Same attributes as menu except children. |
Updated over 8 years ago
