Posts

Fixing Sitecore Buckets folder path - Items created after 12 AM server time zone

Image
We are working on a 24/7 content publishing site, so it is important to have articles published on the correct date and time.  We are using Sitecore buckets to manage article items. In the Sitecore content tree, when the content author tries to look at the items created after 12 AM server time, the items are created under the previous day folder only,  but it is supposed to be created in the current day folder( ie. new bucket day folder to be created and the items to be added in this new day folder ). We have hosted the site in Azure VM in the UAE region. UAE is 4 hours ahead of GMT/UTC (UTC+04:00) so items created between 12 AM to 4 AM are always created under the previous day's folder, but when the item created after 4 AM is properly created under the current day folder in the content tree. Example: If the item was created on 2024 à 09 à 24 between 12 AM to 4 AM then still the item is made under the bucket folder of 2024 à 09 à 23 The created date and the updated date of the Sit

Sitecore Bulk Upload from the item itself - HTTP/2 error Resolution

Image
We need to allow bulk image uploads directly from the Sitecore item rather than requiring users to navigate to the media library to upload images one by one or as a zip file. This feature enables the content author to be productive without going to the media library to upload images. The image upload functionality works well when the content author uploads one or two images simultaneously, even when using a zip file. However, when attempting to upload a larger number of images, we encounter the following error 13380 09:38:06 ERROR Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index Exception: System.ArgumentOutOfRangeException Message: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index Source: mscorlib at System.Collections.ArrayList.get_Item(Int32 index) at System.Web.HttpFileCollection.Get(Int32 index) at System.Web.HttpFileCollectionWrapper.get_Item(Int32 index) at Site

Publishing Restriction for Sitecore Items when using Publishing Service

Image
In Sitecore, we will have different workflows and roles provided for authoring and publishing content, but not every project will follow the workflow approach. This will be easy at the time of development, but later, maintaining the content will be very difficult, as anyone with access can publish the content without needing approval. But if we don't create workflows but only provide roles to the content authors, then it is important to provide only the necessary content authoring and publishing permissions to the content author. Let us consider a scenario in which Sitecore has a news article item that is a bucket-able parent and has child bucket items. Anyone who has access to this news item can publish it along with its descendants. The problem is when multiple content authors do content authoring for different news articles which are not supposed to be published unless it is properly reviewed, but if any of the content authors publish the root parent News items along with its de

Challenges in getting Sitecore item which has hyphen or dash(-) in the name

Image
Let's imagine a scenario where we want to extract all the item details from a Sitecore based on the list of page URLs provided in the CSV file. The Url format in the CSV file: https://{domainname}/{language}/{path-with hypen} So we can think of using Powershell Get-Item to get all the details of URLs from the given CSV file. we expected that all would go smoothly, but when we saw the result most of the URLs got failed by throwing  the item was not found exception  in the PowerShell, we thought that the issue was because of the URL provided in the CSV which has a hyphen in it( replaced all the spaces in the item name with a hyphen ), it is because of the following settings. < encodeNameReplacements >     < replace mode = "on" find = "&amp;" replaceWith = ",-a-," />     < replace mode = "on" find = "?" replaceWith = ",-q-," />     < replace mode = "on" find = "/" replac