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
0
votes
0answers
30 views

Where should you add a custom Connection String? In the ConnectionStrings.config? [duplicate]

Or would it be a bad idea to make any custom edits to ConnectionStrings.config as part of a new update? In that case would it be best to keep the custom DB Connection String in a totally new custom ....
0
votes
3answers
62 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?
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 ...
1
vote
2answers
90 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/...
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/...
0
votes
1answer
39 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 ...
2
votes
1answer
53 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 ...
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?
6
votes
4answers
114 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 ...
0
votes
3answers
88 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 - ...
1
vote
1answer
146 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
0answers
221 views

Adding a SXA Link List as a Component rendering

I have a page content rendering, and in the rendering variant I wanted to include a link list. I've seen simpler examples where you can tie it to a set datasource but in this instance I'd want the ...
4
votes
1answer
239 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 ...
2
votes
1answer
105 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? ...
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 ...
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 ...
1
vote
0answers
114 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-...
0
votes
0answers
32 views

How to prevent non administrators from adding renderings to specific placeholder in SXA?

I know I can use placeholder settings for controlling what can be added to a specific placeholder however in this instance the administrator / super user should have the ability to add to a ...
0
votes
0answers
75 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, ...
1
vote
2answers
153 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 ...
5
votes
2answers
1k 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....
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 ...
2
votes
1answer
168 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 ...
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 ...
3
votes
5answers
787 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?
4
votes
1answer
107 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?
26
votes
2answers
661 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 ...
3
votes
1answer
344 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 & ...
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. ...
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 ...
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 ...
1
vote
0answers
581 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
1answer
391 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
597 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()....
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?
1
vote
0answers
260 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 ...
-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 ...
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?
4
votes
1answer
533 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 ...
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 ...
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 ...
1
vote
1answer
440 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 ...
2
votes
2answers
845 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. ...
1
vote
1answer
351 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
0answers
224 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 ...
4
votes
1answer
209 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
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 | |-...
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 ...
2
votes
2answers
427 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
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 ...