Michael West
  • Member for 5 years, 4 months
  • Last seen this week
How do you programmatically run a Sitecore agent using Sitecore PowerShell Extensions?
Accepted answer
7 votes

Here are a few examples I was able to figure out today. I welcome any recommendations on a better way to do this. Each example loops through the list of agents in the configuration then creates and ...

View answer
How to change total items number in Draft and Awaiting Approval header in workbox
2 votes

The place you are looking for is in the Sitecore.Client.dll as pointed out by Koen Heye. The class Sitecore.Shell.Applications.Workbox.WorkboxForm contains a method called DisplayStates which ...

View answer
How do you customize the the profile photo in 8.2 or newer?
Accepted answer
3 votes

Turns out that you have a few options. The first option is to open up the *Portraits.config** and modify the list of pipe-delimited icons. The second option I discovered is you can simply paste in ...

View answer
Does SXA support page specific content with Partial Design?
4 votes

Yes, page specific content is supported with Partial Designs. You will want to add a component to the Partial Design called a Container. This will allow you to drop whatever reusable or non-reusable ...

View answer
Is it possible to assign the ability to unlock multiple users' items to a non-administrator role?
5 votes

Delegated Administration with SPE Let's say for example that you wanted to provide a Context Menu option for users to unlock items based on the following criteria. Show when User is in the sitecore\...

View answer
Executing Sitecore logic from a Windows Scheduled Task
5 votes

Here is a low complexity example using Sitecore PowerShell Extensions. Make sure that the SPE Remoting Module files are saved to a path configured in $env:PSModulePath. Save script to desired path: ...

View answer
Sitecore items missing language from some of the content
Accepted answer
4 votes

Turns out the guys over at SPE though through some of this too. Hopefully others find this answer helpful. Here's a page describing how to manage item languages. Example: The following will query ...

View answer
How to check access permissions on items for a user via the Security API?
7 votes

Thought I would introduce you to something with a change in approach. Sitecore PowerShell Extensions Example: The following returns the security objects associated with an item. No results indicate ...

View answer
PowerShell Extensions reports: Is it possible to pass / choose parameters?
Accepted answer
6 votes

Currently there is no out of the box "settings" stored "somewhere" for SPE 4.1. Every solution is unique so it didn't make sense to build that. You can however create your own setting items and query ...

View answer
Where do upgrade packages go to when uploaded?
Accepted answer
14 votes

There is a package directory for the Update Wizard packages at the following path under the site root: \sitecore\admin\Packages

View answer
Where should I install Powershell module for SXA?
Accepted answer
9 votes

SPE is only required for environments that use the Sitecore interface. If you are going to use the Content Editor or Experience Editor then install the module. Essentially only the CM needs SPE.

View answer
How to clean up date field values migrated from old Sitecore versions
Accepted answer
8 votes

Here is a prototype for you to test with in your non-production instance. Sitecore PowerShell Extensions $items = @(Get-Item -Path "master:\content\home") + @(Get-ChildItem -Path "master:\content\...

View answer
How to run custom logic when a user has been added to a particular role?
4 votes

Thought I would give a more complete answer. If you would like to use Sitecore PowerShell Extensions to run custom scripts for events you can make use of the Events integration point. There is an ...

View answer
When is it safe to remove an `EventQueue` record?
3 votes

For reference there is a nice response on StackOverflow as to how cleanup the queue. Sitecore recommends fewer than 1000 items in the table and the solution to keep them below that is to run the ...

View answer
Why is event data stored in every Sitecore database?
Accepted answer
20 votes

I believe the primary reason is each event has an associated target database. Found a brief explanation here by Kiran Patils on how the event queuing works: The CM instance triggers an event such as ...

View answer
Convert disk based media to database
12 votes

You have a few good options. Module: You were probably looking for this. https://marketplace.sitecore.net/en/Modules/Media_Conversion_Tool.aspx Custom Code I would convert the code in this ...

View answer
Lucene spatial search with sitecore 8.2
5 votes

You may have a look at the module LUCENE SPATIAL SEARCH SUPPORT on the Sitecore Marketplace. There is a link to the github repo which should give you an example of how that was done for Sitecore 7; ...

View answer
Getting locked items SPE
2 votes

Sitecore PowerShell Extensions also has a built-in report to find these locked items. This is something very useful when you have not interest in writing a line of code. Navigate to to Reporting ...

View answer
Getting locked items SPE
Accepted answer
6 votes

Have a look here in the SPE book regarding the Unlock-Item command. Example: The following will unlock the direct descendants of the home item. Get-ChildItem -Path master:\content\home | Unlock-...

View answer
How can I use a 3rd party search appliance to build my searches?
Accepted answer
2 votes

Have you checked out the custom search provider for Algolia here?

View answer
How do I parse a Rich Text in PowerShell in order to replace elements?
Accepted answer
3 votes

The easiest solution is probably to find and replace characters rather than parse all of the html. Try this: # Home Item $rootId = "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}" # Get only the immediate ...

View answer
1
4 5 6 7
8