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
4
votes
1answer
234 views

Sitecore's Publishing setting vs. a Custom field

I'm using Sitecore 8.2 - update 2. Scenario: I like to list all of the articles sorted by a Publish Date. Which is the best practice/approach? Sitecore's Publishing Setting: Use Sitecore's OOTB ...
8
votes
2answers
788 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 | |-...
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 experience ...
2
votes
2answers
628 views

Setting up dynamic content

I have a list of "modules" that I want to load depending on what template the current item is based on. This selection needs to be overridable. So I created a module loader component that has a ...
11
votes
3answers
866 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 ...
12
votes
2answers
4k 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 ...
8
votes
1answer
1k 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, ...
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 ...
6
votes
1answer
487 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 ...
1
vote
1answer
580 views

What is best way to create a localized site?

We had started the sitecore development in the Version 8.1 update 3 using Habitat. There are plan to have localization more localization in feature. In this what will be the best option for creating ...
3
votes
2answers
1k views

Why we should keep all user profile data in Sitecore?

I had a good debate with friends at work to decide where we should keep user profile and why? As the discussion goes on we had these key points below which I feel our competency is up to only a ...
0
votes
2answers
826 views

Dynamic rendering of sublayouts

I have a dropdown list which contains: product a product b product c If I have chosen "product a" it should render the corresponding sublayout for product a Current code: I have item called ...
2
votes
2answers
2k views

What is the recommended approach for storing custom data within Sitecore?

Our Sitecore project needs to store some custom data (results from a user poll). Is there some sort of a built-in functionality for storing that data on Sitecore sites? The obvious solution is to ...
8
votes
2answers
157 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 ...
4
votes
2answers
1k views

Sitecore General Link linking to itself (internal item) by default

Every BasePage template I have has a general link field that needs its value to be set to itself by default, with the ability to change it. Is there anyway to do this on the standard values of the ...
7
votes
2answers
1k 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?
22
votes
3answers
5k 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 ...
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
811 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 ...
5
votes
1answer
736 views

Most reliable way to detect if running in live site?

Normally we do things like Sitecore.Context.PageMode.IsExperienceEditorEditing to detect if the experience editor is running. I want to do something similar, but detect if the live site is running ...
3
votes
2answers
3k 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 ...
6
votes
2answers
1k 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 ...
17
votes
2answers
725 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 ...
10
votes
2answers
3k 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
423 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 ...
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 ...
14
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 ...
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. ...
9
votes
3answers
7k 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 ...
11
votes
1answer
2k 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 ...
11
votes
2answers
521 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 ...
16
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 ...
13
votes
3answers
3k 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
1k 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
462 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 ...
8
votes
2answers
715 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 ...
5
votes
1answer
693 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 ...
12
votes
1answer
2k 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 a ...
15
votes
4answers
7k 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
508 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
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 ...
12
votes
7answers
511 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 ...
5
votes
1answer
187 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 ...
14
votes
4answers
729 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. ...
7
votes
2answers
570 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 ...
3
votes
3answers
201 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 ...

1
2