Blogger Theme: Blog Data

Most widely used & referred data sets available for any Blogger page. I thought it would be useful to compile Blogger Theme template blog data here as it is the most used data tags in any Blogger Theme > Edit HTML.


These blog data sets is available in any Blogger theme. At a Blogger page > Right Click > select Inspect > scroll to the very bottom of view-source under _WidgetManager._SetDataContext() Blogger settings objects.

{
  'name': 'blog', 
  'data': 
  { 
    'blogId': integer', /* blog unique id */ 
    'bloggerUrl': 'https://www.blogger.com', 
    'title': text, /* blog title */ 
    'pageType': 'item', 
    'postId': integer, /* blog page unique id */
    'url': url, /* fully qualified blog page url */ 
    'canonicalUrl': url, /* fully qualified blog page canonical url */ 
    'homepageUrl': url, /* fully qualified blog homepage url */ 
    'searchUrl': url, /* fully qualified blog search page url */ 
    'canonicalHomepageUrl': url, /* fully qualified blog canonical homepage url */  
    'blogspotFaviconUrl': url, /* fully qualified blog homepage url + favico.ico */ 
    'hasCustomDomain': boolean,
    'enabledCommentProfileImages': boolean, 
    'gPlusViewType': 'FILTERED_POSTMOD',
    'adultContent': boolean,
    'analyticsAccountNumber': text,
    'useUniversalAnalytics': boolean,
    'pageName': text, /* blog page title */
    'pageTitle': text, /* blog title + blog page title combined */ 
    'metaDescription': text, /* search description */
    'encoding': 'UTF-8', 
    'locale': 'en_GB', 
    'localeUnderscoreDelimited': 'en_gb', 
    'isPrivate': boolean, 
    'isMobile': boolean, 
    'isMobileRequest': boolean, 
    'mobileClass': '', 
    'isPrivateBlog': boolean, 
    'languageDirection': text, /* ltr or rtl */ 
    'feedLinks': urls, /* fully qualified urlencoded urls to blog rss or atom feed */ 
    'meTag': text, 
    'openIdOpTag': text, 
    'mobileHeadScript': text, 
    'adsenseHostId': text, /* adsense publsher id for adsense hosted accounts */ 
    'ieCssRetrofitLinks': text, 
    'view': text, 
    'dynamicViewsCommentsSrc': url, 
    'dynamicViewsScriptSrc': url, 
    'plusOneApiSrc': 'https://apis.google.com/js/plusone.js', 
    'sharing': 
    {
      'platforms': 
      [{
        'name': 'Get link', 
        'key': 'link', 
        'shareMessage': text, 
        'target': text
      }, {
        'name': 'Facebook', 
        'key': 'facebook', 
        'shareMessage': text, 
        'target': text
      }, {
        'name': 'BlogThis!', 
        'key': 'blogThis', 
        'shareMessage': text, 
        'target': text
      }, {
        'name': 'Twitter', 
        'key': 'twitter', 
        'shareMessage': text, 
        'target': text
      }, {
        'name': 'Pinterest', 
        'key': 'pinterest', 
        'shareMessage': text, 
        'target': text
      }, {
        'name': 'Google+', 
        'key': 'googlePlus', 
        'shareMessage': text, 
        'target': text
      }, {
        'name': 'Email', 
        'key': 'email', 
        'shareMessage': text, 
        'target': text
      }],
      'googlePlusShareButtonWidth': integer,
      'googlePlusBootstrap': url,
      'jumpLinkMessage': text
    }
  }
}

Behavior


Available globally in Theme > Edit HTML. Some data blog objects & values available only in the <head> tag for a Blogger Theme.

These data blog objects values updates according to the dashboard Settings tab, Blog1 widget settings & Theme > Mobile Template views settings.

How to use on Blogger Theme > Edit HTML


These data blog can be used with any Blogger expression tags. Example usages :-

<b:comment> Check title data availability in view data object </b:comment>
<b:if cond='data:blog.title'>
  <b:comment> Print out the title data values with a <h1/> tag </b:comment> 
  <h1><data:blog.title /></h1>
</b:if>

Example Output 


A blog title with an <h1> tag.

Resources


  1. Widget Tags for Layout - Blogger Help Articles
  2. Adding new expressions to Blogger templates - Official Blogger Blog

Notes


If I have left something out or possible new updates by Blogger Team, please leave a comment below.

3 comments:

  1. A pretty cool new theme, unique style loads of feature. These data sets are useful when using Blogger theme v2...

    ReplyDelete
  2. I have got enough space for my website that I am initially using to upload almost everything on my website. It was a wise decision in the start to get the bigger data plans.

    ReplyDelete
  3. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. palottery

    ReplyDelete

Insert search keyword(s) & press enter...

 
Our website development is made possible by displaying online advertisements.
Please consider supporting us & our projects by disabling your Ad Blocker. Thank You.
Our website requires javascripts turned on for best user experience.
Please consider to turn on your web browser javascript. Thank You.
GDPR: Data submitted at our site is managed by 3rd party processors. Read more on how data is collected, managed & processed at our site. Learn More