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?
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/...
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 ...
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
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 ...
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? ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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 & ...
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 ...
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 ...
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()....
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
7
votes
1answer
977 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, ...
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....
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 ...
1
vote
1answer
450 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 ...
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 ...
0
votes
2answers
689 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 ...
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 ...
3
votes
4answers
560 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 ...
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 ...
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 ...
0
votes
1answer
217 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 ...
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 ...
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
914 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?
3
votes
1answer
486 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 ...