How to get blog Google+ shareMessage (Template Data Tags)
"Riandri.W" <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <[email protected]> |
We can get BLOG ID by using this DATA TAGS: <data:blog.blogId/>
We can get Facebook, Twitter, Pinterest, Blog This sharing messages "Share
to blabla" by using <data:top.shareToFacebookMsg/>,
<data:top.shareToTwitterMsg/>
*But there is nothing for Google+ message, *
I tried <data:top.shareToGooglePlusMsg/>, <data:top.shareToGoogleMsg/>
These tags aren't working, return nothing
I found this javascript in generated Blogger template:
(rest omitted for clarity)
_WidgetManager._SetDataContext([{
'name': 'blog',
'data': {
'blogId': '3580069',
'bloggerUrl': 'https://www.blogger.com',
'title': 'Analytics Blog',
'pageType': 'index',
.
.
'sharing': { <-- how to get data from this object
'platforms': [{
'name': 'Get link',
'key': 'link',
'shareMessage': 'Get link',
'target': ''
}, {
'name': 'Facebook',
'key': 'facebook',
'shareMessage': 'Share to Facebook',
'target': 'facebook'
}, {
'name': 'Google+',
'key': 'googlePlus',
'shareMessage': 'Share to Google+', <-- how to get this
shareMessage
'target': 'googleplus'
}],
'googlePlusShareButtonWidth': 300,
'googlePlusBootstrap': '\x3cscript
type\x3d\x22text/javascript\x22\x3ewindow.___gcfg \x3d {\x27lang\x27:
\x27en\x27};\x3c/script\x3e'
}
}
}])
The object name & data are used in DATA TAGS <data:blog.blogId/>,
<data:blog.pageType/>, <data:blog.title/> and more..
.
I can use almost everything from inside BLOG:DATA Objecs, except from
inside "sharing{}" object,
QUESTIONS:
1. Is there any ways to get data from inside 'sharing{}' object,
especially for Google+ shareMessage
2. In Javascript object we can use index of array:
sharing.platforms[0].shareMessage to get "Get link".....
*How to do it in Blogger Template Tag? *
--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.