Sunday, 18 December 2016

Facing Required meta tag missing (twitter:text:description) Error in your Blogger?

Are you facing issue in setting up Twitter Card for your blog hosted on Blogger? If yes, then this blog post may help you on this.



You will find below code snippet everywhere to setup Twitter Card for your blog. Add below code snippet before </head> tag in your template.

<!-- twitter card details -->
<meta content='summary' name='twitter:card'/>
<meta content='@ThakkarNilesh' name='twitter:site'/>
<meta expr:content='data:blog.url' name='twitter:url'/>
<meta expr:content='data:blog.pageName' name='twitter:title'/>
<meta expr:content='data:blog.metaDescription' name='twitter:description'/>
<meta expr:content='data:blog.postImageThumbnailUrl' name='twitter:image'/>
<!-- end twitter card details -->

But once you add this code snippet, the very next moment you will below error when you validate your twitter card through card validator at https://cards-dev.twitter.com/validator

meta tag missing (twitter:text:description)

If you are facing similar error then you can fix it by surrounding your code with condition as suggested below.

<!-- twitter card details -->
<meta content='summary' name='twitter:card'/>
<meta content='@ThakkarNilesh' name='twitter:site'/>
<meta expr:content='data:blog.url' name='twitter:url'/>
<meta expr:content='data:blog.pageName' name='twitter:title'/>
<b:if cond='data:blog.metaDescription'>
<meta expr:content='data:blog.metaDescription' name='twitter:description'/>
</b:if>
<meta expr:content='data:blog.postImageThumbnailUrl' name='twitter:image'/>
<!-- end twitter card details -->

Now try to validate your twitter card again at https://cards-dev.twitter.com/validator
Hurray... It's showing twitter card. right?

Now enjoy sharing your twitter card!

Monday, 12 December 2016

Publish Bulk Items in Sitecore using Sitecore Bulk Publishing Tool

You will be agree with the fact that many times you want to publish a huge amount of Sitecore items and unfortunately there is NO way to select multiple items while publishing. So you need to select single item at a time and publish it. This is very time consuming process.

This situation is especially happening with content author team in their day to day life of working with Sitecore to pop and publish the content.

In order to increase efficiency of my content team, I have created a tool or you can say utility to publish bulk items in one go.



I am happy to contribute my 9th Sitecore module to the community.

This is how Bulk Publishing Tool will look like when you install it from Sitecore Marketplace. The package contains one ASPX page named "BulkPublish.aspx" page which will be deployed under Sitecore -> Admin folder when you install this package.


You can give either Sitecore Item Path or IDs separated by new lines in right side text box. Clicking on publishing will show Publishing Summary of given page(s) as shown below.


You can download this tool/utility from Sitecore Marketplace.

Feel free to customize this page as per your Sitecore environment and need.