Hi All, Welcome back, In this post we will see about item buckets in sitecore.
Here you go,
why we need item buckets in Sitecore ?
- As your content tree grows, it gets more difficult to locate items, and performance can decrease.for this we can use item buckets to manage your content efficiently.
- Item buckets let you manage large numbers of items in the content tree.
- An item bucket is a container that you can use to hide innumerable items.
- The only way to find bucket items is to use the Sitecore search engine.
Two ways to make an item a bucketable item so that, hide the item if it is placed in an item bucket.
1.Make the individual item bucketable
You can make only one item bucketable at a time.
2.Make the template that the item is based on bucketable.
When you make the template bucketable, all the items that are based on this template are stored as hidden items if they are placed in an item bucket. For this to take effect, you have to synchronize each item bucket.
Steps to make an item bucktable:
Step 1: Create an Item named as bucket.
On the Configure tab => click bucket to turn this item into an bucket.
Step 2: Create some more items(example 1,example2)
On the configure tab => click current item(this turns the item into bucktable)
Step 3: Move example 1,example 2 items into bucket and check if the items are hidden.
Step 4: To check the format that items are stored, enable buckets checkbox in view tab.
The default setting creates a structure based on the date and time – year, month, day, hour, and minute – that the item was created.
Step 5: Check and locate if item is visible via sitecore search API.
I hope now you have some idea about what is item buckets and why we go for.
Next we will see about how to change the default structure of item bucket.
Change how Bucket folders rendered in sitecore:
Step1: In the Content Editor, open Sitecore/System/Settings/Buckets/Item Bucket Settings Item
Step2: Click edit rule, click on the condition where the item buckets is based on template
and click action create the folder structure based on the creation date of the new bucketable item in this format format.
Step 3: Click this and change the format.
The default format is yyyy/MM/dd/HH/mm.
Change this to yyyy/MM ,Click ok and save changes.
Step 4: Navigate to bucket item and click sync to change the format (you need to sync because already created items have other formats to change into new format)
Check if it’s changed.
Thanks for reading, Please share with your friends.
Comment me if anything wrong in this post. Happy coding :)
No comments:
Post a Comment