Posts

Showing posts from 2022

Organize media files using Sitecore PowerShell

Image
Sometimes you work on project that contains big modules like "News & Media" and it contains many Media Files,   organizing Items easy using Buckets, but what about the Media files?! In this Blog Post I will provide you with a script that help you to generate media folders from 0-9 & a-z i.e. Dependencies: Sitecore powerShell The Script: The below script will help you generate Alpha Numeric Folders and move the files under those folders $alphaNumeric=@() 65..90|foreach-object{$alphaNumeric+=[char]$_} # Add the characters A-Z to the Array 48..57|foreach-object{$alphaNumeric+=[char]$_} # Add the characters 0-9 to the Array # The folder in which you want to organize the media $root = "master:/sitecore/media library/{your path}" # Generate folders based on the alpha numeric array foreach ($item in $alphaNumeric) { # Skip if the folder already ...

Set workflow for project templates using PowerShell

Image
Sitecore PowerShell is very powerful tool that helps in many kinds of tasks especially the repetitive tasks, in this blog I am sharing with you a small script that helps to add workflow to all Project templates $allItems = Get-ChildItem -path "/sitecore/templates/Project/{Your Project}" -Recurse  foreach($item in $allItems){     if($null -ne $item["__Default workflow"] -and $item.Name -eq "__Standard Values"){             Write-Host $item.Paths.FullPath             $item.Editing.BeginEdit()             $item["__Workflow"]=""             $item["__Default workflow"]="{Your Workflow ID}"             $item.Editing.EndEdit()     } }

Sitecore Desktop Shortcuts

Image
Sitecore Desktop is a fantastic tool with many capabilities, but most of us are unaware of one of them: shortcuts. In this brief blog, I aim to explain what shortcuts are and how to use them. What's Sitecore Shortcuts? In a word, Sitecore's Desktop is based on the idea of an operating system (OS) desktop, and as you may know, OS desktops have shortcut features that allow you to easily access anything, and Sitecore has the same functionality that help you to reach anything in the content editor quickly. How to make Shortcuts? Go to your Sitecore Instance Log in to  Launchpad Go to Desktop Right click >> Create shortcut Choose Link, Name and Icon Congratulations!

Deploy Config To Solr Cloud Searchstax Using Zookeper

Image
Moving to the cloud has many benefits, but for us it's a new learning curve. In this blog post I will help you deploy your Solr config set to Solr Cloud. In a nutshell, Open searchstax Repository  Download the following Files : accountdeploymentzookeeperconfigcreate.ps1: To create your config accountdeploymentzookeeperconfigdownload.ps1 : To download the config accountdeploymentzookeeperconfigdelete.ps1 : Download this file if you made any mistake and you want to delete the uploaded config set Go to Your Solr Cloud URL Go to collections >> select any of your collections to identify your default config name Download your config set using “accountdeploymentzookeeperconfigdownload.ps1” open the File in any Editor and update the below parameters: Account: it's the account name, if you are managing the searchstax account then you can get it easily Uid: This is the Deployment you can get it from the solr url, it's the first part of the url before the first Dash Name: This...