blog id on blogspot
I want to create a button on Blogspot. The button must send me the blog.ID
and post.ID
.
I can get the post.ID
with code <data:post.id/>
开发者_运维百科 but don't know how to access blog.ID
?
I have worked on Blogspot (http://www.blogger.com) and i have edited my Blogs many times.
As far as i know there is no attribute to fetch blog id ..
like u said you can access Post using
data:post.id
I have not seen any provision for fetching blog Id yet. How you can see your own Blog id.
Refer this to Find Your Own BLOG id..
http://myfundoo-blog.blogspot.com/2010/05/add-reply-option-to-blogger-comments.html
But you can certainly play with other attributes like
data:blog.url
or
data:blog.homepageUrl
By the way,its not possible to other People's Blog id using Button on your blog. You can simple find Blog Id of your own blog using THIS..
Regards, Sangram Nandkhile
You can dynamically get the blog ID with teh data tag:
data:blog.blogId
So, for example, if you insert the following code in your blogger template, it will display your blog ID:
<data:blog.blogId/>
精彩评论