Skip to main content
50 votes

What are some appropriate uses for Sitecore Data Providers?

It's a difficult one; a question I've considered many times over in the years I've been working with Sitecore. I can start with some numbers. I've done perhaps 30 or so projects that involved data ...
Mark Cassidy's user avatar
  • 25.3k
23 votes

What's the best migration strategy for 6.5 to 8.2?

When I did an upgrade from 7.2 to 8.1 earlier this year, I followed these steps: Setup a new instance of Sitecore 8.1 and configure it according to the documentation. Get my settings/layouts into ...
Keith VanderVeen's user avatar
23 votes
Accepted

URL Redirects, When to use Sitecore vs. when to use IIS UrlRewrite Rules

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 ...
Ed Schwehm's user avatar
  • 3,036
22 votes
Accepted

Should Habitat be used as a starter kit?

A Resounding No Think of Sitecore Habitat as the result of an assess and plan project phase where requirements and business objectives were already described for a ficticous client and developed. ...
Pete Navarra's user avatar
  • 14.7k
21 votes
Accepted

When should I define a new publish target?

Common uses I've seen is to make the following two things easier: Preview of the site before it's published where users don't have sitecore access. This preview can be used internally in the ...
Steven Newstead's user avatar
21 votes
Accepted

How do I implement Accelerated Mobile Pages (AMP) with Sitecore?

Because Sitecore supports server-side responsive rendering, it's very easy to use the Device feature of the CMS to support AMP. AMP Layout (using Razor) This example is adapted from Google's example ...
sitecorerick's user avatar
  • 2,329
19 votes

What's the best migration strategy for 6.5 to 8.2?

I normally try to split DB upgrading from code upgrading. This allows me to run the DB upgrade process of vanilla Sitecore instances where any customisations won't interfere with the db upgrade ...
Michael Edwards's user avatar
19 votes
Accepted

What's the best migration strategy for 6.5 to 8.2?

The answer to this depends on the context of your project. Sitecore's recommendations are to make incremental upgrades for every version and updates as well since your current to the latest you are ...
Diego's user avatar
  • 5,688
19 votes
Accepted

Sorting Pages by most views

Here is how you can do this: 1. Create reporting query item Create somewhere an item of template /sitecore/templates/System/Analytics/ReportQuery Example fields configuration: Write down an item ...
Alan Płócieniak's user avatar
19 votes

How can I safely clear the media cache on a production sitecore CD instance?

Other option is to delete from time to time media cache using an schedule agent. Current value is 24 days but if you need to clear more ofen just decrease max age parameter of the last setting (see ...
Vlad Iobagiu's user avatar
  • 18.6k
19 votes
Accepted

How to create a custom theme in SXA?

There are two ways of doing that: create your theme using Create new Site dialogue create your theme manually 1. Create new Site dialogue Create New Site dialogue lets you create your own theme. ...
Alan Płócieniak's user avatar
18 votes
Accepted

Where should I store data source items?

In my opinion, these are the scopes you need to consider: Global (across multiple sites) Site (across an entire site) Pillar/Section (used across an entire subtree of a site) Page (Used only on this ...
Jason St-Cyr's user avatar
  • 6,791
18 votes
Accepted

How can I safely clear the media cache on a production sitecore CD instance?

It is completely safe to just delete the folder /App_data/MediaCache without causing disruption. The minute an image gets called up again, it will be cached again, so no worries about the ...
Dilyano Senders's user avatar
17 votes

When should I define a new publish target?

You can find a great explanation with examples in this blog. A few reasons to define additional publishing targets mentioned there: Traffic, geographic distribution, redundancy and other scalability ...
Gatogordo's user avatar
  • 20.1k
17 votes
Accepted

SXA Page Design vs Page Standard Values vs Page Branch Template

With Sitecore Experience Accelerator you can forget about previous methods, however, there is nothing that will block you from using them. Before - NO SXA: you had to decide how your page will look ...
Alan Płócieniak's user avatar
17 votes
Accepted

Options for handling user-generated content

Things to keep in mind Whenever you have a site with user-generated content, you need to make sure that you keep the following in mind: Security is both more important and more difficult If storing ...
Zachary Kniebel's user avatar
16 votes
Accepted

How to get the correct SiteContext for an Item when you only have the Item

Probably the most terse: string itemPath = item.Paths.FullPath; SiteInfo site = SiteContextFactory.Sites .Where (s => s.RootPath !="" & itemPath.StartsWith(s.RootPath, StringComparison....
sitecorerick's user avatar
  • 2,329
16 votes
Accepted

"Unpublishing" a Language from a site

Because you want to keep the content in the Master database, but you do not want to publish it to the web database, this may be a good opportunity to use Workflow. If you're using Workflow on these ...
sitecorerick's user avatar
  • 2,329
16 votes

Sitecore media ashx not resizing the image (version 7.2)

As of Sitecore 7.5+ (applies to the latest 7.2 versions as well), Sitecore introduced a media request protection for image resizing (to make sure an attacker can't overload your server with image ...
Andrey Bobrov's user avatar
15 votes

How to get the correct SiteContext for an Item when you only have the Item

It's possible to determine the Site an item "belongs" to using the LinkManager. This is how Sitecore resolves links internally when Rendering.SiteResolving = true and expanding links or resolving the ...
jammykam's user avatar
  • 13.8k
14 votes

What are some appropriate uses for Sitecore Data Providers?

I've used DataProviders fairly extensively and I'd say that they're good if: 1. Your API is fast (not too many calls to get the info, easily cached etc) 2. You need data to be up do date (to ...
Owen Niblock's user avatar
  • 1,512
14 votes
Accepted

How to apply Site specific workflow in Sitecore?

If the workflows are not drastically different, you can achieve 'site-specific' workflow via content security. Step 1: Workflow security Create a single workflow definition with some generic access ...
Jason St-Cyr's user avatar
  • 6,791
14 votes

When should I define a new publish target?

To make an educated decision, you need to know what publishing does and what it does not. Publishing is the process of copying content from one database to another. By default there is one source ...
Dmitry Harnitski's user avatar
14 votes

Should Habitat be used as a starter kit?

Every single answer you will receive will be a no, Habitat is not mean to be used as a starter kit. Unless of course your client wanted a website that was exactly like the Habitat (standard, legal or ...
jammykam's user avatar
  • 13.8k
13 votes

What are some appropriate uses for Sitecore Data Providers?

A good example is exposing information from a PIM (product information manager) as native Sitecore items in the Sitecore tree. With this, production information can be accessed via the same API's as ...
Derek Dysart's user avatar
  • 2,489
13 votes
Accepted

Creating new renderings that are compatible with SXA

This is what I worked out from playing with SxA: For your controller renderings, you need to make sure your controller inherits from Sitecore.XA.Foundation.Mvc.Controllers.StandardController Make ...
Richard Seal's user avatar
  • 20.5k
13 votes

Are there any reasons to start a new Sitecore project today, using Webforms?

For me I always use WebForms for POCs because its so fast and easy. But for projects I 95% of the time use MVC. The 5% being for a client requirement where existing projects are WebForms and they want ...
Chris Auer's user avatar
  • 13.1k
12 votes

"Unpublishing" a Language from a site

I think this is possible with SPE. Something like this should work: Remove-ItemLanguage -Path master:\content\home -Language "fr-FR" -Recurse Perform this on a CM server and publish the site to move ...
Gatogordo's user avatar
  • 20.1k
12 votes

When to store content on the Context Item vs. a Rendering's Datasource Item

I could get up on a soap box and speak for days on this. In fact I have. The Page Template Mistake. The role of Information Hiding The first concern you must address (from my viewpoint) is: You ...
Mark Cassidy's user avatar
  • 25.3k
11 votes

What are some appropriate uses for Sitecore Data Providers?

I think there are some good individual examples here of useful Data Provider usage, and some good arguments about when/why you should not use them, but I'd like to summarize the situations in which a ...
nickwesselman's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible