How do I bucket Sitecore items on something other than their creation date?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 08:04:26

You can indeed use a custom IDynamicBucketFolderPath and set that in the config (BucketConfiguration.DynamicBucketFolderPath), but that will change your default for all buckets.

You can define rules in sitecore to specify the folderstructure for a specific path/template/id/etc. By default there are 3 rules: CreateDateBasedPath, CreateIDBasedPath and CreateItemNameBasedPath, but you can ofcourse add your own rules under /sitecore/system/Settings/Rules/Definitions/Elements/Bucketing/

You can change the bucketing strategy by two ways:

  1. Using predefined bucketing rules. Navigate to item bucket settings stored at /sitecore/system/Settings/Buckets location and create a new rule (Bucketing Strategy: Item Creation Date) for resolving the bucket folder path.

  2. Writing custom code for bucketing strategy. Write CustomBucketFolderPathResolver class which implements IDynamicBucketFolderPath interface and return folder path.

Detail information can be found at below post:

http://www.bugdebugzone.com/2014/07/configuring-sitecore-item-buckets-with.html

http://www.bugdebugzone.com/2014/07/configuring-sitecore-item-buckets-with_19.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!