Surendra Sharma

Surendra Sharma

Search This Blog

Friday, October 23, 2015

How to change folder structure of bucket in Sitecore

Sitecore 7 and above has feature called as item bucket.

Item bucket can store a theoretically unlimited amount of items without displaying them in content tree i.e. children’s are displayed as hidden items.

But if you want to show all hidden items then click on "View -> Buckets".

All child Items are by default displayed in tree structure of date and time format.

But what if you want to show items only according to Year wise or combination of date and time wise. How to do that?


Sitecore provide its config file with its every new feature. So Sitecore provides "Sitecore.Buckets.config" for bucketing. Open this file and locate below entry 

<setting name="BucketConfiguration.BucketFolderPath" value="yyyy\/MM\/dd\/HH\/mm"/>

If you want bucket by year wise then modified this configuration entry as 

<setting name="BucketConfiguration.BucketFolderPath" value="yyyy"/>

That’s it. 

But take precaution of the fact that this will create only year folder in all the buckets in content tree.

Please leave your comments or share this tip if it’s useful for you.

No comments:

Post a Comment