Michael West
  • Member for 5 years, 4 months
  • Last seen this week
Installing 9.1 XP0 - Sorry, there was an error : unauthorized_client
Accepted answer
44 votes

After speaking with my friend @kamsar, he pointed out the CORS origin on the Identity Server Instance needs an update. The Identity Server doesn't allow logging in from just any url, for security ...

View answer
SXA get data based on current year
4 votes

I had a similar requirement in which I wanted any dates that have passed today to be excluded. I created a custom rule and added to the Item Query used by Page List. Date Rule - You could update to ...

View answer
How are the Sitecore.XA nuget library file versions mapped to release version?
6 votes

From the feed I see the following: Feed Entries These are the entries you may see in the NuGet feed. 9.1.1 4.8.1 : SXA 1.8.1 9.1 4.8.0 : SXA 1.8.0 9.0 3.8.1 : SXA 1.8.1 3.8.0 : SXA 1.8.0 3.7.1 ...

View answer
Create a launchpad button that opens the content and makes the current context a specific folder
5 votes

I may have found a way for you to do this with some trial and error. First step was to get the path executed by the desktop shortcuts. Once I discovered that I was able to create the following in the ...

View answer
Sharing SXA Placeholder Settings over sites
Accepted answer
3 votes

As you noted, SXA has a scaffolding feature that helps to speed up new tenant/site creation. For example, the Page Content feature has the following: /sitecore/system/Settings/Feature/Experience ...

View answer
Knowing which rendering has a broken link
Accepted answer
8 votes

I had to make a modification to the existing Broken Links report included with SPE to show the broken renderings. <# .SYNOPSIS Lists the items with broken links searching all or ...

View answer
Error clicking on Locked Media Library item: Failed to map the path '/temp/_disabled.'
1 votes

There is a support patch for this issue. It seems to happen for my instance (8.2.7) while the selected media item is locked by a different user. https://github.com/SitecoreSupport/Sitecore.Support....

View answer
Accessing SXA Site Grouping Site Settings Properties from Code
Accepted answer
10 votes

These items can be queried using code like this: var siteInfo = ServiceLocator.ServiceProvider.GetService<ISiteInfoResolver>().GetSiteInfo(Context.Item); if (siteInfo != null) { var ...

View answer
date field in solr not indexing proper date from sitecore
1 votes

Dates are stored as UTC. What you are seeing is the value with timezone information. I would suggest you check the raw field value and then make sure your field is actually crawled.

View answer
How to get items from both master and web Context in PowerShell Extensions without using Get-Item?
Accepted answer
1 votes

Based on your example, you could do the following to compare the results: $criteria = @( @{Filter = "Equals"; Field = "_template"; Value = "{DAF085E8-602E-43A6-8299-038FF171349F}"} ) $...

View answer
How to display page list based on query against a dynamic sxatag value
Accepted answer
3 votes

Here are a few things I learned today that may help. (SXA 1.7.0) The custom sxa: tokens shown in the UI require a pipeline to run in order for them to be resolved. The pipeline that runs for the Page ...

View answer
Site Settings- Favicon configuration
Accepted answer
4 votes

The favicon field is on the "Settings" item. Some more detail: When following the wizard to create a new tenant and site, the feature list shown as checkboxes determine which items are created and ...

View answer
How to get workflow comments?
8 votes

You can always use Sitecore PowerShell Extensions if you would like to generate reports or build a UI around the history data. $item = Get-Item -Path "master:" -Id "{110D559F-DEA5-42EA-9C1C-...

View answer
PowerShell exception at Receive-File dialog
Accepted answer
1 votes

This appears to be an issue that has been around for some time now. I've reported this issue with the SPE Team. There is now a fix in place due to be released with 5.1 which changes the alert to a ...

View answer
What is the proper way to add new fields to an existing SXA component data source?
Accepted answer
4 votes

Adam Najmanowicz provided this nice image to aid in explaining. Under your current tenant site, create a new Datasource Configuration. Select rendering for which this new configuration is used. ...

View answer
One time delete of old versions
Accepted answer
4 votes

Consider retrieving the list of candidates for removal, comparing with the web database, then remove. This SSE answer provides a sample script at comparing version between master and web and showing ...

View answer
What are the limitations of Fast query?
Accepted answer
12 votes

Article by John West I came across a nice article written by John West which provides important information for developers. Known limitations: Fast query does not account for the context language (...

View answer
PowerShell script to update field with IDs to media items
1 votes

My understanding from your sample code is that you want to edit a field which contains 0 or or more item IDs. The documentation site has some examples for this. Example: The following adds new Ids to ...

View answer
I need to reorder renderings in Presentation Details on all pages
Accepted answer
11 votes

The following example uses Sitecore PowerShell Extensions to change the order of two renderings. The renderings are next to each other, and essentially swap positions. Script # Home Page $item = Get-...

View answer
How can I programmatically list all personalization in my page?
5 votes

Using Sitecore PowerShell Extensions, you can run a report to find all item renderings with personalization rules. Hopefully this will be included in SPE 5.1. $database = "master" $root = Get-Item -...

View answer
How do you publish with the Publishing Service using SPE?
Accepted answer
5 votes

The Sitecore Publishing Service module replaces the PublishManager API and in most cases should work as you expect. SPE implements the use of the PublishManager but in a way that does not appear to ...

View answer
You do not have permission to create an item here (Local Datasources)
Accepted answer
8 votes

While trying to configure security for the users of our system, I found that I needed to grant access to the template used for the Data item; which I believe is a Virtual Page Data. Example: The ...

View answer
How do you change the sort order of items using PowerShell
Accepted answer
7 votes

There are two places I can think of when it comes to changing the sort order. Item level sort order Select an item and change the view in the ribbon to include Standard fields. You should see ...

View answer
Powershell command to get lower directory
Accepted answer
5 votes

I assume your question is requesting how to do this using Sitecore PowerShell Extensions. There are a number of builtin variables that SPE generates. I recommend you make use of those before using ...

View answer
Sitecore Publishing Service does not show the languages and seeing 404 errors
Accepted answer
18 votes

Turns out that this issue is fairly common. Saw this happen in both SXA and the Publishing Service. The solution is to clear the Temporary Asp.Net files from IIS. Steps: Stop IIS. This can be ...

View answer
How to read sc.variable programmatically
2 votes

Here is how I used Sitecore PowerShell Extensions to read a specific variable value. $config = [Sitecore.Configuration.Factory]::GetConfiguration() $speSourceFolder = $config.sitecore."sc.variable" | ...

View answer
Traverse to parent item that matches the given template id using Sitecore Powershell Extension
5 votes

If I understand your requirement, you want to find all items related to a known template ID. The phrasing is a bit confusing so it would be helpful if you can clarify the statement. Example: Given an ...

View answer
Determining whether item has been published
2 votes

If you are interested seeing an example visible through the gutter, enable the Publishing Status Gutter module. If you would like to try it out: navigate to the Script Library enable the Publishing ...

View answer
Template inheritance - how to resolve duplicate usage
Accepted answer
9 votes

A solid option is to build components that have a data source item rather than relying purely on fields defined on the page. Here's a scenario to help explain what I mean: Let's say you need to ...

View answer
Why do we require Contained database for Sitecore 9?
13 votes

The use of the "Contained Database User model" was introduced for very good reasons, and could be considered useful outside the realm of Sitecore. You can read the article here and here ...

View answer
1 2 3
4
5
8