Let’s Talk

We would love to hear from you. Want to know more about
our services or have any questions? Say Hi!

What is Sitecore Bucket? How to Customize Bucket Rules?

June 05, 2023
What is Sitecore Bucket? How to Customize Bucket Rules?
Juanita Xavier
Juanita Xavier
Project Manager

A bucket is a special item in Sitecore which is a container for other items.

For Example, Sometimes You have a number of items which has a common template and storing in one place and sometimes it is hard to find a specific item based on the name so the bucket is the best solution to use if your item name starts from a then you just create a bucket with the name of A and store all the item which name starts from A. Please Find Attached a screenshot below for your reference.


What is an Item Bucket?

Item Bucket is useful to store and manage many content items without loading them into the content tree. Item Buckets can be created for a new content item or converted to an Item Bucket in an existing item structure.

Default item bucket

  1. In the Content Editor, in the content tree, create a new folder and give it a suitable name
  2. Enable the Standard fields From View and Check the Is Bucket Checkbox. what-is-sitecore-bucket-how-to-customize-bucket-rules-2
  3. Now create the Child Template for the Blog Details Item and Assign its standard Value as checked Bucketable and Lock Child Relation Checkboxes. what-is-sitecore-bucket-how-to-customize-bucket-rules-3
  4. Your bucket item will be created as the below structure.
    • YYYY
      • MM
        • DD
          • HH
            • MM
    • 2023
      • 05
        • 02
          • 10
            • 30
  5. If you want to change and keep till only date level than go to the Sitecore Bucket.Config under /App_config/Sitecore/Buckets under that folder, you will be able to see Sitecore.Bucket.config.
  6. Now search for the BucketFolderPath inside the config. You will be able to see it like this. what-is-sitecore-bucket-how-to-customize-bucket-rules-4
  7. Remove \/HH/\mm so it will only create items under date bucket.

Also You can store the items with the alphabetical Order into Bucket.

  1. To create Item with Alphabetical Order you need to go to the /Sitecore/System/Settings/Buckets/Item Buckets Settings. what-is-sitecore-bucket-how-to-customize-bucket-rules-5
  2. Inside that click on edit rule. what-is-sitecore-bucket-how-to-customize-bucket-rules-6
  3. You will get a following popup. And inside that add two rules as shown. what-is-sitecore-bucket-how-to-customize-bucket-rules-7
  4. Once you add them you need to select specific template which you want to create for item bucket. And also select the number of level to be created for the bucket. what-is-sitecore-bucket-how-to-customize-bucket-rules-8
  5. I’ve set for Blog Item to create under 2 level of alphabetical order. And Click OK and Save the item. what-is-sitecore-bucket-how-to-customize-bucket-rules-9
  6. Now create the item with the Blog Item Template Under Blog Listing Item. what-is-sitecore-bucket-how-to-customize-bucket-rules-10

As I’ve created an item with My New Blog name. it has created bucket M as First Level and Y as Second Layer and under that bucket out blog item created.