Hot answers tagged

10

This answer does not exactly match your question, but I believe it matches your requirements based on the comments you have made. If you want the Item Bucket search features on the parent item but do not want the child items added into sub folders you can easily add those features to the parent item. Make sure that you can view Standard Fields and find the ...


8

I've used a multilist with search and just used a regex in the validate field to limit to choices to the field requirements know each case. Here is an example regex that limits zero to 5 items ^({[^}]+}|?){0,5}$ For zero to 1 item change the 0,5 to 0,1. To force one item set to 1,1. Src blog post by Ben Ramey


8

For future use: I found a solution for this, we need to enable language fallback for master and web indexes like below, and rebuild them. By default, this setting is set to false <contentSearch> <configuration> <indexes> <index id="sitecore_master_index"> <...


7

You need to set BucketConfiguration.ResolveFacetValueToFriendlyName equals to true. <!-- RESOLVE FACET VALUE TO FRIENDLY NAME If you are storing a field in the index that is being faceted on, it may be stored as an ID. This Setting when set to true, will try and resolve this to the friendly item name instead. USAGE: In an ...


6

Your field is configured TOKENIZED, change it to UNTOKENIZED so that the values are not split when stored in the index. <field fieldName="tagsfacet" indexType="UNTOKENIZED" ...> ....


6

The use of SXA is rather important in this case. As you can see in your configuration, SXA uses by default the switchableLinkProvider. This will check your site configuration in Sitecore to determine if you defined a linkprovider there. If not (I assume you did not), it will take the fallback, which is defined here: <setting name="XA.Foundation....


5

I figured this out. I made the update to change the value of LinkDatabase.MaximumBatchSize to 1000 as suggested and it didn't work. <sitecore> <settings> <setting name="LinkDatabase.MaximumBatchSize"> <patch:attribute name="value">1000</patch:attribute> </setting> </settings> <...


5

Update: You might be able to workaround the issue using only the search interface if you explicitly configure the 'version' search filter: Steps: Click on the arrow drop-down (left of the search box) to bring up the search fly-out Click on the 'Search Filters' link, and then select 'Search by version' In the search box, the 'Version' filter should now be ...


5

With the working examples from K. Heye and christian-hagelid, I realized that I had an assumption, and had created the Field Search Type in the Core database, where all the items lies as well. However, it works by creating it directly in the master database.


5

Yes, there is. I wrote a bog post about it: https://www.skillcore.net/sitecore/sitecore-item-buckets-custom-folders-structure In shoortcut you need to create action extending RuleAction<T> where T : BucketingRuleContext and set ruleContext.ResolvedPath to whatever you want. Here is the example of action which adds author user name to the folder ...


5

The best option would be to create your own Sitecore.DataExchange.Providers.Sc.Processors.PipelineSteps.ResolveSitecoreItemStepProcessor class by decompiling (use DotPeek or ILSpy tools) Sitecore.DataExchange.Providers.Sc.dll and using this instead of OOTB Processor class. There is a DoSearch method there. You also need to create your own Repository ...


5

Yes, you can create a Bucketable template that you can then set as a base template for any templates that you want to be bucketable as well. I used to do this in the past. In fact, I would have a base bucketable template and base bucket template that I would assign to templates so they would have those characteristics. The Base bucket on the standard ...


5

We had the same issue, luckily it isn't too hard to re-implement. I believe this should work exactly like before, but we might have skipped something we didn't need so just be aware of that. AddDynamicFields.cs using System.Collections.Generic; using System.Linq; using Sitecore; using Sitecore.Abstractions; using Sitecore.Buckets.Pipelines.UI.FillItem; ...


5

There are multiple options for this based on your requirement. if you want to simply do it in the Sitecore you can use Item save event but if you want it in outside the sitecore client then you need to write your custom code to run BucketManager.Sync(bucketItem); sample code for item:saved event public class ItemSavedEventHandler { public void ...


4

We're definitely in the grey zone here; as not very many people can speculate on the reasoning that took place while this functionality was designed. That said; the simpler the explanation the more likely it is. When a bucket is created, all that really happens is the IsBucketItemCheckbox field gets set to checked using (new EditContext(parameter, ...


4

To add to Patricks answer, you can also instantiate a search context using the root bucket item: given Item bucketItem IIndexable index = new SitecoreIndexableItem(bucketItem); using (var context = ContentSearchManager.GetIndex(index).CreateSearchContext()) { ... }


4

The best way would be to leverage the Sitecore.ContentSearch APIs to search for all items public List<T> GetAllItemsFromBucket(string bucketPath) { var index = ContentSearchManager.GetIndex("{index name}"); using (var context = index.CreateSearchContext()) { var results = context.GetQueryable<T>().Where(x => x.Path....


4

Just set it: var itemToHack = Sitecore.Context.Database.GetItem("/sitecore/content/YouPath"); using (new Sitecore.SecurityModel.SecurityDisabler()) { itemToHack.Editing.BeginEdit(); itemToHack[Sitecore.FieldIDs.Created] = Sitecore.DateUtil.ToIsoDate(DateTime.MinValue); itemToHack.Editing.EndEdit(); } Source: https://gist.github.com/ncelico/...


3

Unfortunately, there is no native way to sort the folders into sequential order unless you change the month folders to be digits, I.e. Change "January", "February"... to "01", "02"... The reality is that unless you're having your users view item buckets, which is not recommended except in special circumstances, then they will never see those folders. If ...


3

Instead of publishing the specific item, i published the Item bucket with smart publish option.Now the bucket folders and the item are getting published to target database. Not sure this is the best way to do but it is working for me.


3

I don't know much about bucket location filters, but it looks to be a field on the bucket item. Where you want to start is with the addFromTemplate pipeline. This is the pipeline that is called when you create an item from a branch. Once you access this pipeline you can gain access to the branch items after it is created. I used code from Kamsar's Branch ...


3

Alhough the information from Chris was very useful - and the issue is a registered bug now - I do want to share the workaround that we found. In the Sitecore content editor, as an admin locate the /settings/Buckets/Item Bucket Settings item. The first field is "Show Results in". Here you can choose how you want items from a bucket search to be displayed in ...


3

That is not how Sitecore buckets works. See the Sitecore documentation here: When you store items in an item bucket, the parent-to-child relationship between the items is removed, and instead the items are organized in a folder structure according to the date and time they were created. Therefore, the item buckets feature is primarily designed for storing ...


3

I encountered this issue and ended up creating my own custom step (inheriting from the original) to solve it: Create a new pipeline step template I called it Resolve Sitecore Item with Bucket Support Pipeline Step. Add the Resolve Sitecore Item Pipeline Step template as a base template Path: /sitecore/templates/Data Exchange/Providers/Sitecore/Pipeline ...


3

I see three options. 1. Sync your bucket again Navigate to your bucket root Click Sync button in CONFIGURE section If the first step will not work you have to check if both instances have the same bucket path settings 2. Copy Item Buckets Settings Find item: /sitecore/system/Settings/Buckets/Item Buckets Settings Compare Rules for Resolving the Bucket ...


3

I can confirm that it's an issue in SXA. I've registered this in our backlog and it will be fixed in 1.8 release. Workaround might be hard to implement for you. It would require to override Sitecore.XA.Foundation.SitecoreExtensions.CustomFields.FieldTypes.MultiRootTreeList and change OnLoad() method in which you would need to create your custom ...


3

Sitecore.Buckets.Manager is present Sitecore.Buckets.dll assembly in Sitecore 9.1. You don't need to do any changes in your code. Just, reference right assembly. Sitecore 9.1 requires .net 4.7.1. See: https://sitecore.myget.org/feed/sc-packages/package/nuget/Sitecore


3

From you question I am understanding that you want to enable bucket view by default for all the users, which mean every user can see the bucket items in the content tree as date, month, day folder format(usually). This can achieve by updating the Sitecore.Buckets.config file. In this file, there is a section called dataviews- <dataviews> <...


2

You are able to change the format of the default bucketing folder structure uising the following setting: <setting name="BucketConfiguration.BucketFolderPath" value="yyyy\/MM\/dd\/HH\/mm"/> Note that this is still based on the item creation date though. It is also possible to utilise the Sitecore Rules Engine to determine the folder structure, ...


2

Can you try moving your item to the root folder? /sitecore/system/Settings/Buckets/Search Types I think Sitecore doesn't pick up the ones in the User Defined folder by default. Tried adding it myself in 8.1 update 3 and I see the search type:


Only top voted, non community-wiki answers of a minimum length are eligible