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
2
votes
2answers
4k views

Best practice for implementing a controller rendering using GlassController

I'm looking for best practices to implement a Controller Rendering using glass mapper and TDS code-generation. I've read and liked this approach https://www.akshaysura.com/2016/08/01/tihidi-implement-...
4
votes
1answer
699 views

Creating Glassmapper Models Programmatically with Standard Values

Is there no standard way to incorporate/ consider a template's standard values when creating a Glassmapper model programmatically? This is all I can find online, but it seems that you have to rename ...
3
votes
2answers
2k views

How do I get my custom css class to show up in SXA?

I have created a new theme in my SXA website (by duplicating the Basic Theme) and I have been able to switch to the new theme in Experience Editor. I've decided to add a background image to the body ...
11
votes
3answers
655 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 ...
6
votes
2answers
822 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 ...
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 ...
6
votes
3answers
341 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 ...
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 ...
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. ...
8
votes
2answers
694 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 | |-...
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 ...
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 ...
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 ...
11
votes
2answers
465 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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
6
votes
3answers
917 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 ...
11
votes
2answers
385 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 ...
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?
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/...
8
votes
2answers
685 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 ...
11
votes
2answers
446 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?
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 ...
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. ...
5
votes
1answer
595 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 ...
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 ...
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 ...
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 ...
-6
votes
1answer
134 views

Hidden Features of Sitecore CMS? [closed]

This came to my mind after I saw the following question https://stackoverflow.com/q/9033/468718 and also https://stackoverflow.com/questions/tagged/hidden-features We, Sitecore developers know the ...
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?
3
votes
1answer
427 views

Why is Sitecore including the bucket parent in the search result by default

When creating buckets, I've always puzzled over one implementation decision from Sitecore in regards to buckets. By default, the bucket parent item is included in the list when you are searching for ...
13
votes
2answers
1k 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 ...
5
votes
1answer
169 views

Best practices for user profile one-to-many relationships with attributes

In multiple Sitecore sites I have implemented a separate SQL database for storing information related to the user profile where one-to-many relationships where concerned. One such example is: UserA ...
7
votes
2answers
477 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 ...
14
votes
4answers
598 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. ...
23
votes
6answers
967 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 ...
3
votes
3answers
165 views

Best practice for mobile optimization for content-driven site?

We are creating a new website using Sitecore, and it seems that we have several options for mobile optimization: Responsive design (like on any CMS) Mobile device/presentation layer with device ...
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 ...
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?
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 ...
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 ...
12
votes
7answers
463 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 ...
26
votes
2answers
660 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 ...