Anton
  • Member for 5 years, 3 months
  • Last seen this week
When should I use the "NoReferences" NuGet packages?
15 votes

In 2019 the answer is little bit different. Sitecore will not release new NoReference Nuget packages. But you can get similar behavior by usage of -IgnoreDependencies setting: Or by command line: ...

View answer
Sitecore Page Request Lifecycle
Accepted answer
9 votes

It is too much information to provide in one answer or one article. I can suggest you to start with this diagram created by David Morrison(I have added only few things related to Sitecore Analytics): ...

View answer
How can I verify that Azure Redis and Shared Session is working correctly?
Accepted answer
8 votes

How we did for AWS, on Azure I think should be pretty the same: Create test1 page that will display server name(CD1, CD2, etc.) and put information to session: trigger some goal and save some ...

View answer
Sitecore Powershell Script to find all the items with Personalizations defined
6 votes

You can run fast query and check if __renderings field contains conditions or rule nodes: $query = "fast:/sitecore//*[@__renderings='%<conditions%' or @#__Final Renderings#='%<conditions%']" ...

View answer
Dynamic content in body copy based on url parameter
6 votes

Sitecore allows you to set up caching options. Your cache could be different depending on device, parameters, query string, etc. You are also able to extend caching options (if you need). For your ...

View answer
Need to have different IIS Rewrite rule on CD and CM while using Sitecore Azure Module
Accepted answer
5 votes

Your CM and CD servers are available by different addresses.(e.g.: cms.test.com and www.test.com) It is possible to filter redirect rule before execution using {HTTP_HOST} variable: <rule name="...

View answer
How to log service layer exceptions in Sitecore log files?
Accepted answer
5 votes

Sitecore logging system is wrapper under log4net. It is even configured not under <sitecore> node in web.config. To use Sitecore log files you should have 3 things: Configured <log4net> ...

View answer
Allowing umlauts in Sitecore WFFM Regular expression validator
Accepted answer
5 votes

I think that your regular expression is not correct. "-" sign in regular expressions is used to match any from range of characters. e.g.: A-Z or a-z. You have range that is not closed: ß- I removed "-...

View answer
How to render an MVC rendering in code
5 votes

Sitecore MVC have 2 types of renderings: View Rendering, Controller Action Rendering. To be simple - controller action is only some logic that fill data to model and transfer it to view. You can use ...

View answer
Error Related to GetEnd() Method in a Custom Rendering Wrapper - Sitecore 8.2
5 votes

The problem is that your wrapper conflicts with Sitecore Experience Editor wrappers.(refer to Sitecore.MvcExperienceEditor.config) There are 2 additional processors that add its own wrappers: ...

View answer
Disable submit button on MVC form that has slow action
Accepted answer
5 votes

I think it is still better to do via Javascript. You should be able to disable(hide button) on submit. mvc form is dynamically reloaded after clicking submit, the button is immediately reset to ...

View answer
Send email to contact before deleting the contact
Accepted answer
4 votes

Email Experience Manager(ExM) doesn't send and finish all things related to email immediately. Your code will put the email into an "automated message bus". And then your email will be sent. ...

View answer
Display none attribute is not working
Accepted answer
4 votes

display:none; doesn't work well with emails. Many emails clients doesn't support it. Even Gmail have started to support this property only recently. You should other technique to hide blocks in ...

View answer
Workbox always hides content tree
4 votes

It is expected Sitecore 9 behavior. Content tree checkbox is unchecked when either you uncheck it in Content Editor and it was saved in user options, or Content Editor is opened in popup mode.(It is ...

View answer
Valid Analytics.MaxAcceptedClockDeviation values
4 votes

TimeSpan settings in Sitecore use DateUtil.ParseTimeSpan method internally Following metadata of that method: Format must be 00:00:00 representing hours, minutes and seconds. A fourth optional part ...

View answer
WebP format support with backward compatibility (support in IE, Safari)
Accepted answer
4 votes

Yes, your idea is correct. Problem is that Sitecore media request protection removes extra parameter extension that is required for Dianoga WebP to work. After adding extension to protected media ...

View answer
Getting "Could not parse the language" exception while publishing
4 votes

Looks like you are trying to use culture 'ms-BD' that is not present in .NET by default. Check that you definitely need 'ms-BD' and it is not mistake or misprint. You can check cultures registered in ...

View answer
Convert uploaded images to WebP codec on upload
4 votes

Some time has gone after asking this question, and I think it was solved. But for someone, who will find this question in future, this could be helpful. I have created fork of Dianoga. How WebP ...

View answer
WebApi queries on nonexistent resource returns 200
Accepted answer
4 votes

Fast query does not equal to web request. It should not return same codes. You can execute fast query from Item Web API, from code, from XPath builder. And for these three places fast queries should ...

View answer
Cannot send emails as an Engagement Action
4 votes

Use reflector to look into OnLoad implementation of SelectStandardMessage Action Dialog (Sitecore.Modules.EmailCampaign.UI.Dialogs.ActionDialogs, SelectStandardMessage, Sitecore.EmailCampaign). I am ...

View answer
How to expose Sitecore SXA website content in JSON format to third party using custom API?
Accepted answer
3 votes

There are few options: Use Sitecore RESTful API. It doesn't matter SXA or not, but you will be able to get items in JSON format. Use JSON device to get page data. SXA allows you to model your data ...

View answer
How to ensure rendering cache invalidates after a direct edit to the .CSHTML file
3 votes

The easiest way to clean the HTML cache is to trigger publish. Sitecore doesn't have watchers on .cshtml files, so it is expected behavior.

View answer
Sitecore ItemService API resolve .../link.aspx?_id=abc
Accepted answer
3 votes

It is not possible out of the box in Sitecore. Filling of item properties is not configurable, it is hardcoded: private static void FillProperties(ItemDataModel itemModel, Item item, string urlPrefix) ...

View answer
Rich Text Editor - Option to remove all style attributes
Accepted answer
3 votes

It should be available for you by default: Click Show editor on field that your want to edit Select tassel icon Select Strip Css Formatting from dropdown menu If it is not available in your version/...

View answer
Allow all characters in ItemNameValidation setting
3 votes

There are 2 settings that control item names during package installation: InvalidItemNameChars should be blank. ItemNameValidation should be .* With this settings you should be able to install ...

View answer
Which layer do I place my TDS codegen in?
Accepted answer
3 votes

Following Helix principles you should divide your single TDS project into layers and projects. And for each code project you need to have separate TDS project(of course, if required). And for each TDS ...

View answer
Is it possible to teach the keepalive agent to overcome TLS/SSL certificate warnings?
Accepted answer
3 votes

You can override UrlAgent that is used to make keepalive.aspx call. And disable certificate validation: System.Net.ServicePointManager.ServerCertificateValidationCallback = ((sender, ...

View answer
Sitecore Bucket Manager in Sitecore 9.1
Accepted answer
3 votes

Sitecore.Buckets.Manager is present Sitecore.Buckets.dll assembly in Sitecore 9.1. You don't need to do any changes in your code. Just, reference right assembly. Sitecore 9.1 requires .net 4.7.1. ...

View answer
Autocomplete control using Lucene
3 votes

If you are looking for autocomplete implementation, you can refer to search terms functionality in Sitecore Content Search: Instead of running search query each time: var results = context....

View answer
How to scale multiple CM and CD where each one contains a different site but share the same databases?
Accepted answer
3 votes

I don't know the way how to do it out of the box. But can suggest how to do it with hack. Idea is to sync cookies that Sitecore uses to identify visitor to same values across all websites.(Important ...

View answer
1
2 3 4 5