_Network.getNetworkData()
Function to get the network data or attributes.
{% set network = _Network.getNetworkData() %}
Example Response
{
"id":"10",
"guid":"f3ce4274-fb8d-4a82-a2db-b4d81b4cc5fa",
"title":"Network Name",
"templatePath":"/themes/theme1",
"thirdPartyIntegrations":{
"disqus":{
"shortName":"cognitives",
"apiKey":"ASDFG2345t9rXjTIR031mBWthmGdyCxKIjbzPyDC7jYoyIEDfbnmsk76th",
"apiSecret":"Wponmkhs567hgrZANEA4Kg4n9WAckQzgtsjTkbwKJ1wrtunbgb6579mns8shs"
},
"googleTagManager":{
"script":"Google Tag Manager Code",
"noscript":"Google Tag Manager(noscript) Code"
}
},
"defaultDomain":{
"domain":"network.cognitives.com.au"
},
"defaultBlogUrl":"http://network.cognitives.com.au",
"networkLogoLinkUrl": "http://www.cognitives.io",
"networkBlogs":[
{
"id":"49",
"guid":"7c425ca3-1c0a-40c2-a7c0-c1866228adf7",
"url_prefix":"myblog",
"title":"My Blog",
"type":"blog",
"short_description":null,
}
],
"styling":{
"customStyleSheet":"Custom css",
"fonts":{
"primaryFont":"Amarante",
"primaryFontVariants":null,
"secondaryFont":"Allura",
"secondaryFontVariants":null
},
"colours":{
"headerBgColor":"#261436",
"footerBgColor":"#261436",
"pageBgColor":"#1822e5",
"linkColor":"#d4c1c1",
"linkHoverColor":"#261436",
"headingColor":"#d8db27",
"navigationBgColor":"#909ba8",
"navigationColor":"#ffffff",
"navigationHoverColor":"#182322",
"navigationActiveColor":"#16e350"
}
},
"poweredBy":"Partner portal name",
"favMedia":{
"id":"w864l6b1ruzqu9o1vz9i",
"cloudName":"cognitives",
"path":"http://res.cloudinary.com/cognitives/image/upload/v1479479740/w864l6b1ruzqu9o1vz9i.png"
},
"logoMedia":{
"id":"ahzyykgsthuseesc82dj",
"cloudName":"cognitives",
"path":"http://res.cloudinary.com/cognitives/image/upload/v1479987366/ahzyykgsthuseesc82dj.svg"
}
}
Response Description
| Attribute | Description |
|---|---|
| id | Network ID |
| guid | Network GUID |
| thirdPartyIntegrations | Network third party intgrations |
| defaultDomain | Network default domain |
| defaultBlogUrl | Network default blog URL |
| networkLogoLinkUrl | if Logo redirect URL is set then it is Logo Redirect URL else it is default blog URL |
| networkBlogs | List of network blogs |
| styling | Network styling details |
| favMedia | Network favicon |
| logoMedia | Network logo |
Third Party Integrations
| Attribute | Description |
|---|---|
| disqus | Disqus Details |
| googleTagManager | Google tag manager details |
Disqus Details
| Attribute | Description |
|---|---|
| shortName | Disqus short name |
| apiKey | Disqus api key |
| apiSecret | Disqus api secret |
Google Tag Manager Details
| Attribute | Description |
|---|---|
| script | Google Tag Manager code (To be put after head tag) |
| noscript | Google Tag Manager(noscript) code (To be put after body tag) |
Network Default Domain
| Attribute | Description |
|---|---|
| domain | Network default domain |
Network Blogs
| Attribute | Description |
|---|---|
| id | Blog ID |
| guid | Blog GUID |
| url_prefix | Blog url prefix. |
| title | Blog title |
| type | Blog type i.e. blog or section |
| shortDescription | Blog short description |
Network styling details
| Attribute | Description |
|---|---|
| customStyleSheet | Custom Css |
| fonts | Fonts List |
| colours | Colors List |
Fonts List
| Attribute | Description |
|---|---|
| primaryFont | Primary font. Applied to p tag. |
| primaryFontVariants | Primary font variant. |
| secondaryFont | Secondary font. Applied to h1, h2, h3, h4 , h5 tags. |
| secondaryFontVariants | Secondary font variants. |
Colors List
| Attribute | Description |
|---|---|
| headerBgColor | Header background color |
| footerBgColor | Footer background color |
| pageBgColor | Page background color |
| linkColor | Link color |
| linkHoverColor | Link hover color |
| headingColor | Heading color |
| navigationBgColor | Navigation background color |
| navigationColor | Navigation color |
| navigationHoverColor | Navigation hover color |
| navigationActiveColor | Navigation active color |
Media Details
| Attribute | Description |
|---|---|
| id | Cloudinary Cloud ID |
| cloudName | Cloudinary Cloud Name |
| path | Cloudinary Cloud Path |
Updated over 8 years ago
