Questions tagged [best-practices]

Questions about community-accepted best practices. Indicates that the question seeks guidance on Sitecore best practices. These questions have somewhat more latitude to be "broad" than normal questions.

Filter by
Sorted by
Tagged with
46
votes
11answers
1k views

What are some appropriate uses for Sitecore Data Providers?

Data Providers are difficult to develop, given the performance and data mapping challenges they can present. But they are powerful when done correctly: Allowing real-time integration with external ...
41
votes
9answers
2k views

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

In a few weeks, I'll start a migration project of a Sitecore 6.5 site to an 8.2 site. At that time the Express Migration Tool will only support 7.2 to 8.2, so the rest will be a manual process. I ...
26
votes
2answers
663 views

Restricting Item Access Rights to Roles - Prevent Users from being assigned Access Rights directly

Best practice is to assign access rights to roles rather than users. So I would like to block changes that apply access rights for users. Sitecore does not seem to trigger the saveUI pipeline on ...
24
votes
4answers
1k views

When should I define a new publish target?

This is a follow up to Should I configure multiple publish targets to publish to multiple environments? In that question, I asked if I should define publish targets to publish between environments. ...
23
votes
6answers
969 views

“Unpublishing” a Language from a site

There are currently five languages defined in a v7.2 site: en, en-GB, fr-FR, de-DE, en-AU, and zh-CN. Marketing has decided they no longer want to translate to fr-FR and would like to remove it from ...
22
votes
3answers
4k views

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

For the purpose of this conversation, let's leave URL rewriting that doesn't result in a browser redirect off the table. Here are a number of URL Redirect scenarios that are regularly encountered for ...
20
votes
2answers
5k views

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

This is just a general question. Has anyone implemented AMP with Sitecore before? Is it possible, how difficult and could you point me in the direction of documentation?
17
votes
3answers
1k views

Where should I store data source items?

I've seen two schools of thought on structuring the content tree as it relates to datasource items: Store datasource items in a folder underneath the context item Store data source items in a folder ...
17
votes
2answers
630 views

What are options for archiving xDB data?

I've ran into a number of different scenarios lately around xDB and data retention and archiving. What is the best practice for archiving data in xDB in general? For example, is there a best practice ...
16
votes
6answers
2k views

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

Should I stick with Webforms? I currently work for a Digital Agency and I have been tasked with building a new website for one of our clients based on Sitecore. I have a couple of years of ...
15
votes
2answers
1k views

Should Habitat be used as a starter kit?

I have seen some really great examples at how to build a website using Habitat. In many ways it contains a good percentage of features that I need. Is this something that is production-ready and ...
15
votes
1answer
1k views

Creating new renderings that are compatible with SXA

I've been playing with SXA and some of the out of the box renderings and rendering variants that come with it. I understand how to create my own rendering variants, and I understand how to create my ...
14
votes
4answers
5k views

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

I would like to manually clear the media cache on a production CD instance. Is there a way to clear the cache without causing disruption to the site?
14
votes
4answers
603 views

TDS workflow when content items need to be deployed

This likely applies to other serialization solutions as well, but I'm specifically using TDS in this case. Here is the scenario: A site is developed and has gone live with some baseline content. ...
13
votes
2answers
2k views

Sorting Pages by most views

I have a requirement in our 8.1 update 2 solution to provide a sorting mechanism for pages based on the number of views. This data lives in the analytics database and I'm looking for a way to retrieve ...
13
votes
1answer
2k views

How to create a custom theme in SXA?

SXA is coming with two predefined themes - Basic and Wireframe. They are stored in /sitecore/media library/Themes media folder and cannot be modified in Creative Exchange. What is the best way to ...
12
votes
3answers
2k views

What is the difference between IsExperienceEditor and IsExperienceEditorEditing

What is the difference between Sitecore.Context.PageMode.IsExperienceEditor and Sitecore.Context.PageMode.IsExperienceEditorEditing? I've always used Sitecore.Context.PageMode.IsExperienceEditor in my ...
12
votes
3answers
2k views

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

This is a best practices question. When designing the templates and content tree for a Sitecore installation, what determines whether a given field should be part of the "Page's" fields vs stored on ...
12
votes
7answers
464 views

Tool to test long term execution footprint of your Sitecore solution

So I'm coming up on the end of a project cycle; and I want to just give it a good shake around the hinges to see if everything is fine. I'm not looking for load testing (imo, load testing locally is ...
12
votes
2answers
3k views

MongoDB and Disaster Recovery

What are peoples best practices for MongoDB and disaster recovery? What I'm interested in is less around resilience (we have replica sets - and are looking at SaaS solutions too) but more around ...
12
votes
1answer
1k views

Setting up multiple CM servers

We are setting up multiple Sitecore CM servers. Do we need to do anything more then what is covered in this documentation for setting up CMs. The documentation covers just giving each instance of CM ...
11
votes
2answers
466 views

Helix Best Practice when developing components for the Marketplace

So I've been planning to develop some modules for the community to place in the marketplace but also as code on GitHub that people can extend from. Having said that, I'm hoping to develop these ...
11
votes
2answers
2k views

How to apply Site specific workflow in Sitecore?

I have problem at hand for which I'm confused about what is the best practice for going after it. I have thought to intercept item creation process in Sitecore and read the site node properties. This ...
11
votes
3answers
658 views

Are there any specific reserved field names that shouldn't be used in Sitecore?

I'm working on a project in which we are upgrading an instance of Sitecore from v6.6 to v8.1. The original code built on top of v6.6 is directly accessing the Sitecore.Data API (as opposed to Glass ...
11
votes
2answers
449 views

Where should environment-specific configs be placed in Helix (Habitat) compliant solution?

Where should environment-specific configs be placed in Helix (Habitat) compliant solution (in the VS solution and the file system), such as connection strings?
11
votes
2answers
388 views

How often should agents run to both minimize impact on users and reduce risk of other performance issues?

First I referenced John West's article on agents here. He speaks of polling frequencies and intervals but neither there nor other places have I seen a clear guide on the agents that exist and best ...
10
votes
2answers
3k views

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

You only have an instance of Item. How do you get it's "official" site, assuming there are multiple Sites defined in configuration?
10
votes
1answer
1k views

SXA Page Design vs Page Standard Values vs Page Branch Template

Sitecore historically had two options for building reusable page design: Page Standard Values Branch Template Both these options allow to build composition of visual components and later build pages ...
9
votes
2answers
2k views

Options for handling user-generated content

This is pretty much a duplicate from Alex's question on stack overflow, but I was wondering if there had been any developments in the 6 years since that question was asked... We have a need to store ...
9
votes
3answers
372 views

Where should I install Powershell module for SXA?

Solution can be installed on many environments - QA, Staging, Prod. In every of these environments Sitecore instances have different roles - CD, CM, Job, Publishing and etc. Should I install ...
9
votes
3answers
5k views

Best practices for HTTP Denial of Service configuration

A security audit has been performed for Sitecore setup. One of the issues revealed is about "HTTP Denial of Service" Description: A malicious user with a computer can send a specially crafted ...
8
votes
2answers
695 views

Common structure for multi-region, multi-lingual website setup

Question on what is the most common or preferred content tree structure for a multi-region, multi-lingual setup. Our current content tree looks like this: MyWebsite.com | |-USA | |-...
8
votes
2answers
686 views

Most important caveats for continuous delivery and zero downtime

Currently I am working on the physical view of our Sitecore architecture, part of this view is how we do deployments which cause no downtime for endusers and preferably our content editors. So far, we ...
8
votes
2answers
147 views

Options for Planning an Effective Presentation Details Strategy

I am very familiar with Presentation Details and inheritance, as well as the Sitecore 8 documentation on Versioned Layouts, but I feel like Presentation Details are all too often one of the most ...
8
votes
3answers
1k views

What's an efficient Frontend development process / workflow for Sitecore?

Does anyone have a Frontend development/prototyping process/workflow that has proven to be effective and efficient? I have multiple sites running on Sitecore. We are also MVC based. As a Frontend ...
7
votes
1answer
4k views

Sitecore media ashx not resizing the image (version 7.2)

We have 3 (near identical) Sitecore sites on a development server and 2 out of the 3 fail to resize the images using the inbuilt Sitecore query string parameters. Example URL: /~/media/...
7
votes
2answers
1k views

What are the available methods for local development when using Azure Search in a PAAS setup?

Utilizing Azure Search as the Sitecore search provider has various pro's and con's. One question that immediately comes up is how to develop against Azure Search. SOLR and Lucene can be run locally ...
7
votes
2answers
479 views

Where should I place my Sitecore Custom Module file assets?

When developing sitecore modules, is it recommended to install the different custom files in the sitecore folder or sitecore modules folder? Please see below screenshot: Actually, I am installing ...
7
votes
2answers
915 views

Template standard values final layout

Which purposes can be reached by using final layout in template standard values? What are advantages and disadvantages to use final layout in template standard values?
7
votes
1answer
983 views

Updating Presentation details and Template Inheritance (Rendering Inheritance)

I am using the Sitecore 8.2 I have a template T1 which has rendering R1 set on its Standard Values (set a long time ago, maybe at the age of Sitecore 7 or earlier). There is a set of templates T2, ...
6
votes
3answers
347 views

What's the Best Practice for Storing Sitecore in the Solution?

So at the company I work, we've always stored the Sitecore instance that we are developing (for the site we are building) in source control. In this instance, we use TFS for source control. (Though I ...
6
votes
4answers
116 views

How to manage Sitecore Hotfixes

While building solutions bases on Sitecore I have to deal also with Sitecore hotfixes. For my current project I already have about 20 different hotfixes. They override default Sitecore files in most ...
6
votes
2answers
828 views

Does SXA support page specific content with Partial Design?

When I build my page in SXA I use components like Rich Text to implement page elements. Content I entered is stored in component data-source on page level. This is exactly what typical content author ...
6
votes
3answers
919 views

Dedicated CM server for scheduled publish

We have a requirement for setting up a dedicated CM server (CM2) that will handle scheduled publishes. Other publishing jobs the users are doing should be handled on the default CM server (CM1). How ...
6
votes
2answers
1k views

Best Practice around <applicationInitialization> for Sitecore WebApps

Is there any best practice or recommendation around applicationIntialization? Should we use this? What is the best way to warm up or improve start up time of CMS and CD website after swap deployment ...
6
votes
1answer
153 views

Can you use Azure DevOps with Sitecore Managed Cloud

When implementing Sitecore Managed Cloud, what deployment or technical considerations need to be thought about? As an example: in modern deployments, using Azure DevOps is a viable deployment ...
6
votes
1answer
434 views

Is there a way to deploy assembly bindings out using the gulpfile

We are setting up a new Helix based system, and are looking at making the development process as easy as possibly from a devOps point of view, I seem to have a disconnect however in assembly versions ...
5
votes
2answers
1k views

Add Rendering parameters to placeholder

I know that this might sound strange but, instead of adding rendering parameters to the different controls/modules on the page, I want to be able to add rendering parameters to the placeholder itself. ...
5
votes
3answers
201 views

SXA custom css priority level

How do I set the priority of css files so when it optimized all css files, custom css file gets higher priority?
5
votes
1answer
597 views

Should I configure multiple publish targets to publish to multiple environments?

We have several environments: Our production / live site. Our staging / QA site. Our development site. Local developer's machines. I know sitecore supports several ways to publish, including ...