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

How to get the path to the temp folder

I need to create a temporary file. I'd like to save it in the temp folder, but I'm not sure what's the best way of getting the full path of this folder. If I use Sitecore.Configuration.Settings....
5
votes
1answer
735 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 ...
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 ...
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 ...
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 ...
4
votes
1answer
134 views

Reversed Insert Options

Has anyone implemented a feature like Reversed Insert Options? Meaning a template should know where it should be added as an Insert Option rather than what it can add?
4
votes
1answer
354 views

Unintentional parallel minions

If the workload of a minion takes longer time than it's WakeupInterval, in order to avoid getting a second copy of the same minion processing the same list, is there a way to know if there is a ...
4
votes
1answer
664 views

How to use rendering variants as reusable component?

I am looking to create reusable container section with promo rendering variants. This section should include multiple variant rendering. For example, a section with partners logo which I can reuse ...
4
votes
1answer
810 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
3answers
200 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 ...
3
votes
3answers
3k views

Is there an API for item creation?

We're in the process of integrating with a product management tool to automate the process of item/product creation within our system. I know that Sitecore has the ability to pass back the objects ...
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 ...
3
votes
5answers
1k views

Same Solr Service for multiple Sitecore instances

Can I use same Solr service to install or use for different vanilla Sitecore 9.0.2 instances? What is the best practice?
3
votes
4answers
750 views

Running asynchronous tasks to update user profile

I am looking for the best way to synchronize profile data from an external system. We authenticate users using an external authentication service. We use the Sitecore virtual user mechanism to log ...
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 ...
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 ...
3
votes
1answer
168 views

Accessing Page Rendering Datasources in workflow action

Using Sitecore 9.1, SXA 1.8.1. I have a page with a link list clone. When I delete a link from that list and then publish via workflow the deletion is not propogated properly through to the web ...
3
votes
1answer
479 views

What is the best way to create seed dynamically for Dynamic placeholder in Sitecore 9

I am creating a Materialize-UI based Grid (CMS authorable) to reduce no of fixed/static layouts in the application. CMS side - I've created Row & Column templates, One grid rendering & ...
2
votes
2answers
1k views

Hide page from navigation in SXA

How to hide page created under 'Home' node, so that it doesn't appear in the navigation menu in SXA? For example, page like search result or error doesn't need to be included in navigation menu. ...
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-...
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 ...
2
votes
1answer
24 views

How to configure Telerik controls in a secure way for Sitecore?

I'm tuning my Sitecore setup: review configs and settings, analyse use of external services and assess security gaps. And found that Telerik controls are enabled on CD instances but not sure how they ...
2
votes
1answer
329 views

Where to store data in Sitecore?

I am learning Sitecore and I would like to know best practices on where should I store user specific data For example: I am implementing "TODO List" website. Where should I store "Task" models? ...
2
votes
1answer
329 views

Recommended Server specs for multi developer VM - Sitecore 9 development

Our company have a team (14 developers) working in a Sitecore based solution. Currently for every dev we have i7 16gb ram 500gb SSD installation in each dev machine. But now we want to move to a ...
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 ...
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 ...
1
vote
2answers
161 views

Best practices - Sitecore website in Prod - local or remote Sitecore databases?

Judging by how SIM works, and how pervasive SIM is... I assume the most common practice for QA and Prod, is the Database is local/on the same machine as the website. Is this indeed the suggested/...
1
vote
2answers
270 views

Is creating a Model under /sitecore/layout/Models a best pratice?

I was wondering if there was something more modern than having to create a Model item under /sitecore/layout/Models for every view rendering I have. If I'm informing the view the namespace and type I ...
1
vote
1answer
522 views

Custom component in SXA hidden in toolbox

I am having issue adding new custom feature to page in SXA. Steps I followed: Created custom area for toolbox by adding feature in system->settings->features->custom features. Next, I cloned ...
1
vote
1answer
487 views

Custom features with custom rendering section in Sitecore SxA Toolbox [duplicate]

What is the best practice to create a custom toolbox section in SXA? I am looking to reuse promo rendering under this custom components section. Is this something which can be achieved without ...
1
vote
1answer
383 views

Sitecore SxA Sites - Best Practices [closed]

Are there any Sitecore demos or other sites built using Sitecore SxA, keeping best practices in mind? Any information would be help.
1
vote
1answer
359 views

Display list of items with a dynamic query set by content editors

I would like to have a listing module where content editor could select from a list of article types (custom field on a custom template). The list should then query all articles for the selected ...
1
vote
1answer
975 views

How to pass values from the rendering parameters in custom sxa rendeing variants component

I'm creating a custom component in sxa with rendering variants. I had a look at many examples where most of them are using the field name that's available in the page item. <div @Html.Sxa()....
1
vote
1answer
118 views

Sitecore optimization for local development

We have big Sitecore solution that is taking long time to load. We need to optimize the code obviously. But from pure Sitecore configuration point of view, what we can adjust for local development ? ...
1
vote
0answers
325 views

Best practice for adding a div with class around a couple of renderings [closed]

In SXA 1.8 how do I implement having a div with classes and aria labelling around two components (eg. a link list and search box). eg. I want: <div id="menu" class="header-content menu-...
1
vote
0answers
733 views

Sitecore 9 httpBeginRequest pipeline reuse?

In my content delivery instance I have user information that is used in multiple componentized view renderings, which is sourced from REST services (some of this I want to pre-fill, some will be done ...
1
vote
0answers
297 views

When to use a component from SXA library vs component customization?

I am new to SXA and am looking for guidelines and best practices on when to use "SXA components" and when use "custom components". Based on my understanding at this point in time, I think that we ...
1
vote
0answers
364 views

How do we transfer a Sitecore/ASP.NET session between domains on the same delivery cluster?

A bit about our setup. We have 3 Sitecore 8.2U5 Content Delivery Servers across one Analytics node. We have SSO through a 3rd party provider (PING), a main site, and some portal sites. The portal ...
0
votes
3answers
186 views

Should ConnectionStrings.config be in source control/VS?

Or alternatively should ConnectionStrings.config just be left up to the server environment and never part of your VS publish?
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 ...
0
votes
3answers
237 views

Does SXA provide a plain text rendering for a snippet?

I have a snippet where I am using an accordion and want a plain text field above the accordion to be able allow them to set a title (with set formatting). I am only finding the Rich Text option - ...
0
votes
2answers
294 views

Prevent language code in URL

We have a Sitecore 9.1.1 site with SXA 1.8.1. We're getting duplicate results in analytics because the urls will appear there with and without the \en part. We only have 1 language in the site. I ...
0
votes
0answers
133 views

Can I add out of the box renderings to custom component

If I had specific html structure that I needed for a header for mobile responsiveness but inside it seemed appropriate to use the out of the box renderings such as image, linked list, search, link, ...
0
votes
1answer
247 views

Loading specific stylesheets and css (bundling) depending on included controls? [duplicate]

I'm new in Sitecore and I need to know how to manage the styling and javascript files for the controls. I have a control that can be many times on the website, so if I place the bundle on the cshtml ...
-6
votes
1answer
147 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 ...

1
2