Showing posts with label bucket. Show all posts
Showing posts with label bucket. Show all posts

Wednesday, December 15, 2021

Sitecore Eliminate Bucket Folder Item Names from Page Item URLs

 Hi Folkes,

Recently we have requirement where we have to remove the unnecessary folder created in bucket items while accessing underneath bucketable items, so I just search for that and I found few blogs very useful here mentioned below:

https://sitecorejunkie.com/2016/05/31/omit-sitecore-bucket-folder-item-names-from-page-item-urls/

http://www.debugthecode.com/p/blog-page_15.html

I personally follow below blog:

http://www.debugthecode.com/p/blog-page_15.html

But I found one challenge Above article using LinkProvider which is obsolete in Sitecore 10 so I decided to search more what we can use instead of LinkProvider and I found below article useful where explained how can we use ItemUrlBuilder in place of LinkProvider:

https://www.konabos.com/blog/sitecore-linkprovider-is-now-obsolete

You can follow this below repo to implement the solution which support Sitecore 10 new ItemUrlBuilder instead link provider for remove the unnecessary folder from page item URL for bucketed items.

https://github.com/gaurarun777/Sitecore-Bucket-Folder-Item-Names-from-Page-Item-URL

I hope you enjoy this Sitecore blog. Stay tuned for more Sitecore related articles.

Till that happy Sitecoring :)


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

Friday, February 26, 2016

Bucket

What Is a Bucket?
•A bucket allows you to transform an item into a repository that stores other items that are not displayed in the content tree
•Potential to store millions of items, which a tree structure would not support

•Friendly search UI for authors to manage a large number of items.
Advantages of Buckets
•Support for potentially millions of items that would not suit a tree structure and slow down the UI –for example, products, repositories and orders
•Automatically organizes content items into a folder structure that improves database retrieval performance
•Queries run against an index, ensuring high performance
•Find what you want quickly by using free text search, facets and search filters.

Should I bucket?
Bucket if:
•You do not care about the structure of the data stored in the bucket
•You anticipate a large volume of items
•You would benefit from searching for items rather than locating them in the tree.


How turn a specific template into bucket:
  1. Using the content editor navigate to specific template standard value which you want to make bucket.
  2. Click the Configure tab->Buckets->Bucket to turn it into a bucket.

  3. Navigate to the item which is created from this template.
Confirm that the item is now a bucket. The active commands in the Buckets group should be Revert and Sync.



So above we just create a bucket item, & all of his children must be bucketable if we want to store in the bucket.
So we need to make children item template bucketable. Here below are the steps:
  1. Using content editor navigate to the one of children item whose template we want to make bucketable. 
  2. Make all these type of item bucketable by enabling the Standard values check box in the Bucketable settings group of the Configure tab:



    Note: Because you have made a change to the bucketable settings, you now need to sync the bucket.
  3. Select the bucket (that is the parent item) and synchronize it by clicking the Sync button in the Buckets group.
Confirm that all children (except some items, which is based on the different template) are hidden and that search and faceting work as expected.

Buckets:
Any item can become a bucket. The children under the buckets can be a mix of both bucketable and non-bucketable items, however the two types will not behave in the same way. Therefore, to make a consistent experience for your authors, consider only having bucketable items under a bucket.

View the Normally Hidden Bucketable Folder Structure
To view the folder structure in the content tree of bucketable items under a bucket, click View->Buckets option.
Maintaining Structure with Bucketable Items:
To preserve the parent/child relationship of items stored in a bucket, navigate to the Standard Values of the template of the item that will act as the parent
(for example, items based on the News Article template will be the parent to items based on the Comment template). Ensure Standard fields checkbox is checked in View group and enable the Lock Child Relationship check box from Item bucket section from right.