_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

AttributeDescription
idNetwork ID
guidNetwork GUID
thirdPartyIntegrationsNetwork third party intgrations
defaultDomainNetwork default domain
defaultBlogUrlNetwork default blog URL
networkLogoLinkUrlif Logo redirect URL is set then it is Logo Redirect URL else it is default blog URL
networkBlogsList of network blogs
stylingNetwork styling details
favMediaNetwork favicon
logoMediaNetwork logo

Third Party Integrations

AttributeDescription
disqusDisqus Details
googleTagManagerGoogle tag manager details

Disqus Details

AttributeDescription
shortNameDisqus short name
apiKeyDisqus api key
apiSecretDisqus api secret

Google Tag Manager Details

AttributeDescription
scriptGoogle Tag Manager code (To be put after head tag)
noscriptGoogle Tag Manager(noscript) code (To be put after body tag)

Network Default Domain

AttributeDescription
domainNetwork default domain

Network Blogs

AttributeDescription
idBlog ID
guidBlog GUID
url_prefixBlog url prefix.
titleBlog title
typeBlog type i.e. blog or section
shortDescriptionBlog short description

Network styling details

AttributeDescription
customStyleSheetCustom Css
fontsFonts List
coloursColors List

Fonts List

AttributeDescription
primaryFontPrimary font. Applied to p tag.
primaryFontVariantsPrimary font variant.
secondaryFontSecondary font. Applied to h1, h2, h3, h4 , h5 tags.
secondaryFontVariantsSecondary font variants.

Colors List

AttributeDescription
headerBgColorHeader background color
footerBgColorFooter background color
pageBgColorPage background color
linkColorLink color
linkHoverColorLink hover color
headingColorHeading color
navigationBgColorNavigation background color
navigationColorNavigation color
navigationHoverColorNavigation hover color
navigationActiveColorNavigation active color

Media Details

AttributeDescription
idCloudinary Cloud ID
cloudNameCloudinary Cloud Name
pathCloudinary Cloud Path