Sitecore PowerShell Extensions (SPE) tricks are a set of useful PowerShell scripts everyone working with Sitecore should have at hand. Scripts are grouped into folders based on the specific functionality:
- Admin
- restart Sitecore's application pool
- CRUD
- convert items from one data template into another;
- copy child items to a certain folder;
- copy child items based on a specific data template to a certain folder;
- copy a certain item to a new destination;
- create a new item based on a certain data template in a specific destination;
- delete an unwanted item with its child items permanently;
- delete child items under a specific path;
- delete child items based on a specific data template;
- delete many bucket items;
- move a certain item to another location;
- update a rendering value;
- update a value of a certain item field;
- remove all HTML formatting from a string value;
- convert a Droplist plain text value into a Droplink reference (Sitecore Item Id);
- convert GEO coordinates - Latitude and Longitude, into SpatialPoint;
- get links
<a href="xxx" />
from an HTML document; - get a publishability setting for an item version;
- get standard and / or non standard fields for an item;
- get the latest version of a certain item;
- refresh
license.xml
file across all sites
- Language
- add a language version to child items;
- add a language version based on a specific data template;
- Populate
- generate a dictionary from some values;
- generate a time dictionary with a half-hour / hour step;
- Publish
- publish child items;
- publish child items based on a specific data template name / Id;
Hope you found these PowerShell scripts helpful, your contributions and suggestions will be very much appreciated. Please submit a pull request.
SPE tricks are released under the MIT license what means that you can modify and use scripts how you want even for commercial use. Please give this repository a star if you like any of SPE tricks and your experience was positive.