Ed Schwehm
  • Member for 5 years, 2 months
  • Last seen this week
3 answers
22 votes
5k views
URL Redirects, When to use Sitecore vs. when to use IIS UrlRewrite Rules
Accepted answer
23 votes

Using IIS URL Rewrite (or firewall/load balancer/CDN) is appropriate for all domain-name and protocol changes (i.e. everything to the left of "/"). This covers #1, #2, and #3 from your list. I'd ...

View answer
2 answers
16 votes
7k views
Configuring Sitecore to display PDFs in browser
Accepted answer
22 votes

The <mediaLibrary><mediaTypes> section of Sitecore.config (or web.config in older versions of Sitecore) contains a <mediatype> element for each file type. Within each mediatype ...

View answer
2 answers
22 votes
1k views
How can I copy roles between environments using TDS?
22 votes

TDS 5.1 added the ability to manage roles within TDS. You have to enable management of roles in TDS in the project. This is done by opening the TDS project properties and, on the General Property tab, ...

View answer
4 answers
13 votes
2k views
What is the difference between an index and a search index
Accepted answer
12 votes

tl;dr: If you are on Sitecore 7.0 or newer, you should pretty much always be using ContentSearch indexes. If you are on Sitecore 6.X, you can only use the older Sitecore.Search.Index indexes. ...

View answer
3 answers
11 votes
7k views
An item name must satisfy the pattern: ^[\w\*\$][\w\s\-\$]*(\(\d{1,}\)){0,1}$ (controlled by the setting ItemNameValidation)
Accepted answer
12 votes

That exception originates from Sitecore.Data.Items.ItemUtil.GetItemNameError(string name) method in Sitecore.Kernel: if (itemNameValidation.Length > 0 && !Regex.IsMatch(name, ...

View answer
1 answers
5 votes
645 views
Package Designer shows blank modal window when clicking "Generate ZIP"
Accepted answer
11 votes

When you get seemingly odd behavior like this, it's always a good idea to check the Network tab in Chrome Dev Tools (or Firebug in Firefox or whatever it's called in IE/Edge). When you click the "...

View answer
1 answers
8 votes
1k views
How does Sitecore update the Link Database?
Accepted answer
11 votes

An important note to start: the "Links Database" is a table named "Links" that lives inside a Sitecore database. It is not a separate database. Sitecore only updates the Link Database on the database ...

View answer
1 answers
8 votes
2k views
How can you get a unique ID for a rendering on a specific Sitecore item?
8 votes

The solution that ended up working for me was to use the DeviceDefinition.GetRenderingByUniqueId method with the RenderingReference.UniqueID object: foreach (RenderingReference renderingReference in ...

View answer
1 answers
2 votes
554 views
How to edit sitecore-XP0.json file
Accepted answer
7 votes

You really shouldn't edit those files. If you need to override any of the default values, provide those overrides in your installation script: $SqlMarketingAutomationPassword = "...

View answer
4 answers
15 votes
7k views
How can I safely clear the media cache on a production sitecore CD instance?
6 votes

I have just manually deleted the folders under App_Data/MediaCache/[site name] on each CD server. Never seems to have caused disruption since Sitecore will fetch the image from the database again if ...

View answer
1 answers
5 votes
254 views
GetBrowserClassString() Throws Error when installing a package in SXP8.1U3
Accepted answer
5 votes

Given this works for you on other environments with (presumably) the same code, the problem is most likely somewhere in the databases or files not in version control (including tokenized files). ...

View answer
4 answers
13 votes
20k views
How do you get the link for a media item?
4 votes

MediaManager has a GetMediaUrl method that can be used for this: Sitecore.Resources.Media.MediaManager.GetMediaUrl(MediaItem item); Sample usage: string mediaUrl = Sitecore.StringUtil.EnsurePrefix( ...

View answer
3 answers
3 votes
1k views
Sitecore 9 Installation - Password is too short
3 votes

The password for the marketingautomationuser account comes from the sitecore-xp0.json and xconnect-xp0.json files: "SqlMarketingAutomationUser": { "Type": "string", "DefaultValue":...

View answer
1 answers
2 votes
331 views
What are the consequences of disabling the analytics index?
2 votes

Content delivery should be unaffected, as you stated, unless you're doing something custom and accessing analytics data from front-end code. Reporting could be extremely slow, depending on the ...

View answer
1 answers
0 votes
140 views
Sitecore media protection | outside sitecore application
1 votes

You are asking how to get the hash value for a Sitecore media item and specific parameters from a non-Sitecore application, yes? You only need the hash if you are providing querystring parameters to ...

View answer