output
stringlengths
34
25.7k
instruction
stringlengths
81
31k
input
stringclasses
1 value
I have tried enabling pipeline profiling in production and there was no noticeable performance penalty, as long as CPU measurements (Pipelines.Profiling.MeasureCpuTime) were off. With CPU timings measured, the overall page load time was increased by something like 3% (a rough estimate). I know this is anecdotal evide...
Is there a downside to enabling the Sitecore Pipeline Profiler? The Sitecore Pipeline Profiler is disabled by default. What is the performance impact when enabling it? Is it recommended to only do this in development, or can it be safely run in production?
The package without NoReferences suffix brings dependent Nugets containing additional DLLs. These DLLs are defined as dependencies in Nuget definition. If you check the dependencies list you will find Sitecore DLLs and third party DLLs like Newtonsoft.Json or HtmlAgilityPack in it. The package with NoReferences suff...
When should I use the "NoReferences" NuGet packages? I'm converting a Habitat solution using DLLs checked into source control over to NuGet packages using the Sitecore package source feed. When should I use the packages marked NoReferences (so that I end up with the exact same project references)? Or those without th...
TDS has a feature named Global Config File that allows you to define the value of any TDS project setting in a centralized manner. Setting up the TdsGlobal.config To start using this feature, right click on the solution and click "Add Global TDS Config file": TDS will add a new folder to your solution, containing ...
How can I share settings between multiple TDS projects? I have several TDS projects in a solution, all of them have the same deployment properties (such as the access GUID, deployment folder), package metadata (author, version, etc.) and validation settings. When I need to change any part of configuration, I have to a...
I think you will have to make this functionality yourself. You will most likely have to hook into the httpRequestBegin pipeline and also extend and replace the default LinkProvider. Here's an (untested) example of how this can be approached. Start by hooking into the httpRequestBegin pipeline and check if the languag...
How to setup single site with one domain per language I have a website that has 2 languages, lets say English (en) and Dutch (nl). Currently the site runs on a single domain, www.x.be. All is fine. But now the customer want to add another domain www.y.com to this site. We can add this domain to IIS and the site defini...
Have recently implemented this module, works perfectly for me so far, give it a try. https://vohil.net/2017/05/16/rebuild-sitecore-analytics-index-without-re-building-reporting-database/
How to rebuild the analytics index without rebuilding the entire reporting database? In Sitecore 8.1.3, is it possible to rebuild the analytics index without rebuilding the entire reporting database as specified in doc.sitecore.net? I have an analytics index that is more or less broken, and as far as I know it is not...
In general, if your data nodes are hosted in different geographical regions, latency between them will be considered high. Write concern High latency will make the replication process slower, which means that using the write concern of w:1 is highly recommended in order to prevent performance degradation. On the othe...
What are the best practices for MongoDB replica set latency? I'm looking to setup a environment with 3 MongoDB (1 x Primary and 2 x Secondary nodes) in different regions and wondering if: Is there any recommendations on latency (in ms) limitations for the synchronization of the data? Is there a way to avoid issues d...
If your throughput consist out of more than 100.000 writes per second, I would recommend you use an SSD. I think you should not overkill your machine. MongoDB cache will only take up to 10% of your available RAM to cache it's write actions. When you use the write concern w:majority on a replicaset your data will always...
MongoDB disk IOPS I was reading that Sitecore recommends SSD disks for MongoDB Servers, and I am wondering if What are the recommended performance values? Will I have any performance lost if not use SSD? Best practices relation with IOPS
We found that by using an Incognito window in Google Chrome or using Private Browsing Mode in Firefox that this error will go away and we can continue work in Sitecore. Hope this helps others with this issue in the future.
The CSRF cookie value did not match the CSRF parameter value exception in Chrome One of our developers is getting this error randomly when perusing through his local development instance in Sitecore 8.1 Update 3 using Chrome. I am not getting the exception at all on my machine on any of the browsers. Is there an known...
There are a couple of steps involved. Download the image from the url via a WebRequest Copy the download stream to a MemoryStream Set up a MediaCreator Configure MediaCreatorOptions Create the MediaItem Optionally you also need to consider the context Database and permissions. In this example I am just uploading to...
How to upload an image programmatically from URL I have a task to upload an image into Sitecore's media library programmatically given the url to the image. How would I make this possible?
You are able to set the required validation item rule item to FATAL ERROR in Sitecore. This is the highest level of validation. This setting prevent the user to save the item with validation error.
How do I enforce Alt tags on all images in Sitecore Sitecore flags up empty Alt tags but it still lets users save them without setting the Alt tag. Is there an easy way to enforce that this is done for all new images? I know I could write a custom validator like so: https://techmusingz.wordpress.com/2014/11/04/enfo...
If the workflows are not drastically different, you can achieve 'site-specific' workflow via content security. Step 1: Workflow security Create a single workflow definition with some generic access roles for each state. Use these only to grant access to the workflow states. Step 2: Content security Create a securit...
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 idea is similar to what I have read regarding Site specific RTE HTML ...
After further investigation it turns out this was an issue with a custom pipeline that was being fired and interfering with the upload of images. We added some logic to skip the pipleline during uploads and it is now working fine.
'Parameter is not valid' error when uploading images in media library I'm getting a strange behaviour when uploading to the media library recently where Images upload but the pop-up doesn't close and an error is shown if I look in the network tab. The image actually does upload but with no height/width or alt text: ...
The indexes are defined in configuration, and the core for that index is specified in that configuration section. Here's the default 'sitecore_core_index' definition in an OOTB sitecore install (some properties elided for space): <configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.Conte...
How to specify Solr core in search code for Sitecore 8.1 I recently upgraded from Sitecore v7.5 to v8.1. In addition my Solr configuration changed a little. On v7.5 I only had a single core. On v8.1 I now have many cores. After upgrading my search code is not returning any results and I am debugging it. I am wond...
Normally, the .update package can be converted to a zip file. You just need to rename the .update to .zip. Once this is done, open the package and see if the items and dlls are present in the sub folders. If you have more .update package inside the package, you can try to unzip the main .update package and the install...
Update package installation throwing XML Parsing Error: no element found I'm trying to upgrade an 8.1 install to 8.2. I've followed the steps in the guide so far, including installing the UpgradeInstallationWizard package. When I select the .update package and try to progress to the next step I get this unhelpful err...
This should actually now work out of the box on Sitecore 8.2+ including Sitecore 9 and 10 with no additional code or configuration required. Among the resolved issues from the 8.2 release notes: ​Sitecore.Services.Client prevents using Attribute Routing with ASP.NET WebAPI​. Sitecore is calling the config.MapHttpAttr...
Web API 2 Attribute Routing with Sitecore 8.2+ Has anybody set up Web API 2 Attribute Routing with 8.2 or later? I tried the 'official' route, which is to create a custom pipeline handler to the initialize pipeline that does the registration. I've tried to hook it up with a config as well as using webactivator. I've d...
It looks like you are missing the caches/fieldsCache node in the coveo node in your Coveo.SearchProvider.config, as the following: <caches> <fieldsCache type="Coveo.Framework.Caching.FieldsCache, Coveo.Framework" singleInstance="true" /> </caches> I suspect this error comes from trying to access the field cache th...
Coveo initial reindex throws "object reference" exception I have a scenario, using the free Coveo on-prem server, where I've previously set up a QA Azure VM that works fine with the SQL server, Coveo, and Sitecore all on it. Due to certain external databases we're using, we have to use an Azure VM for SQL, so we're ty...
I think the most common extension is to use the rules engine. You create a processor for the GetPlaceholderRenderings pipeline that uses the rules engine to add/remove renderings. Here are some links to various implementations of the idea. I'm sure there are more out there too. https://github.com/matthewkenny/Cond...
Placeholder settings on sub-renderings This is something that's been bugging me and I was curious to others' solutions. Let's say you have a template that you've done standard values on for the presentation...you pick a layout, put renderings on, put placeholder settings on. Let's say one of these renderings is a sub-...
Start by reading the Sitecore Helix Documentation. The component-based architecture it describes is definitely the way to go. Most of the accelerators use something like it even if they don't use the Foundation-Feature-Project layers. Most of the accelerators also move presentation details away from the template sta...
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 fragile pieces of architecture on my sites. The loose-coupl...
The answer to your overall question is that you should not publish across across environments. Can you? Sitecore is so flexible that you can create publishing targets to all kinds of Sitecore databases without Sitecore complaining too much. However, there are a lot of gotchas that fall into play here. Publishing cau...
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 packages and 3rd party tools like TDS, but ...
As you have already found, that button is defined by the /sitecore/content/Applications/WebEdit/Default Rendering Buttons/Properties item in the core database. To make that button appear in the main toolbar, change the Type field so there is no selection rather than the default Common. Changing the Header field shoul...
Move/Rename Experience Editor 'Edit component properties' button In specific instance, I prefer to make use of rendering parameters when creating a Sitecore rendering. However, our content authors find it's placement and button description unintuitive. I see that these buttons are configured in the core database a...
Common uses I've seen is to make the following two things easier: Preview of the site before it's published where users don't have sitecore access. This preview can be used internally in the organisation to see what is about to go live. Good especially if you have limited number of editors; full details here http://g...
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. The answer was that that was not best practice. So, to follow up, when shou...
Would that work for you? ancestor-or-self::*[@@templateid='{website-root-template-id-here}']/*[@@templateid='{shared-content-template-id-here}']/*[@@templateid='{contacts-node-template-id-here}'] This'll travel up the content tree to the nearest website root node (from any page) and then down to the respective Contac...
Site-relative datasource locations We have a multisite setup, where Shared Content is stored in a node for each site as a sibling to the site frontpage. For example: - Website 1 -- Home --- Some page -- Shared Content --- Contacts - Website 2 ... In the above example, how would i use the Contacts folder as a DataS...
SPE is only required for environments that use the Sitecore interface. If you are going to use the Content Editor or Experience Editor then install the module. Essentially only the CM needs SPE.
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 Powershell on all these instances if I use SXA?
Check the root settings of EXM as explained here. The Embed Images checkbox controls whether to embed images in the message or to insert links to images. You might need to untick this.
EXM Messages sent with images as attachments on version 3.3 In EXM 3.3, for some reason, all of our dispatched emails are getting sent where the images that included in our rich text field (which are all of them) are getting sent as attachments as well as showing up in the email. This was not the case in ECM 2.2,...
DataSource Location inside rendering parameters has different context. You could achieve your goal by extending resolveRenderingDatasource pipeline. Allows developers to override the default logic for resolving the data source for renderings. Pipeline args type is: ResolveRenderingDatasourceArgs and it contains...
Relative rendering DataSource Locations How do I define DataSource Location for rendering parameters, relative to the context item? When defining a DataSource Location for rendering parameters (Droplink or TreeList etc), using a relative XPath query (./ or ancestor-or-self etc), it seems that the DataSource Location ...
Starting with version 8 or 8.1 it was changed how to add a button to experience button. Please follow next link to add new button to experience editor: http://reyrahadian.com/2015/04/15/sitecore-8-adding-edit-meta-data-button-in-experience-editor/ Before it was very simple, you didn't need to add new code for edit...
How do I add a button to the Experience Editor Ribbon? I would like to add a button to the Experience Editor ribbon that will open a modal or new window with a set of fields from the context item. I had some custom code to do this with the old Sheer UI ribbon but would like to implement this within the new Speak UI r...
The reason you see only the latest version in normal mode is the fact that there is only one version in web database. Normally Search Results rendering returns all versions of your item. This is unexpected behaviour and I would consider this as a bug (by default we should get only the latest version, this is the def...
How can I hide old page versions in SXA Search Results in Preview mode? I created multiple versions for my page. I see only last version in Search Results SXA component when page is rendered in normal mode (what is expected). Although, when I switch to Preview mode, all the variants are shown. How can I filter the ...
You should use Rendering variants for this. When you edit the search results rendering properties, there is a field which allows you to select rendering variant. You can choose from the couple of default ones but you can define your own. In order to define a variant you have to: Insert new Variant definition in the...
How can I customize Search Result in SXA? Out of the box SXA Search Results component shows only page Title. How can I customize that component to show page Image and Description?
I would say that these are the files specific for the Project layer so they should be placed in a module there. I would expect a project representing a Website there so I would add them in such a project. From the Helix docs: The Project layer provides the context of the solution. This means the actual cohesive we...
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?
Sitecore is a great CMS to use for zero downtime, here are some thoughts: Have multiple publishing targets This will solve the issue of fields being renamed etc. Details here https://sitecore.stackexchange.com/a/1413/87 User sessions Ideally you're going to want to shove the session into the database, perhaps Mongo...
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 have automated all of our deployments, because we hav...
Purpose of keepalive.aspx Here's the full code of the page in Sitecore 8.0: <%@Page Language="C#" %> <%@ Import Namespace="Sitecore.Analytics" %> <!DOCTYPE html> <html> <head id="Head1" runat="server" enableviewstate="false"> <title>Keep Alive</title> <script runat="server"> protected override void OnPreIn...
What is the purpose of keepalive.aspx? I know that this the page is called every 15 minutes (by default) by a scheduled task. <agent type="Sitecore.Tasks.UrlAgent" method="Run" interval="00:15:00"> <param desc="url">/service/keepalive.aspx</param> <LogActivity>true</LogActivity> </agent> Does it have any other ...
I would go with Sitecore PowerShell Extensions. It supports your version as well. My idea is to run query and process all items you want to check. In the past I used something like this to compare revisions between master and web database: function RevisionsMatch($itemToCheck){ if($(Test-Path "web:$($itemToCheck...
How to find out what's pending to be published I need to do a full site publish but there could be content, without workflow with changes that can't be published. How could I build a "report" with the list of items with changes that would be published with a Site publish. To make it "easier" we are still on 6.6 I ha...
Utilizing data extension points The first thing I would consider is whether your data can be stored as part of the standard Sitecore entities. Contact The xDB contact has the following fields where you can store custom data that will be saved to MongoDB: Facets Attachments Tags Interactions CustomValues If y...
How can I utilise MongoDB for non-xDB related things in my Sitecore solution? Assuming we have a sparking new Sitecore installation running, and have already invested in the relevant MongoDB infrastructure to keep the solution running 24x7 and so on - how can I make further use of this infrastructure in my solution? ...
Yes - there are several advanced ways this can be used - but as I see it the main drawback will be that you expose yourself to a heavy denial of service attack. The in-memory provider will block writes and therefore hinder creations of new sessions if it runs out of memory - so a session flood attack (probably the easi...
Can I use the in-memory storage engine for my MongoDB based sessions? MongoDB 3.2+ offers the option of putting some or all of the structures into an in-memory engine. I was thinking to try out this capability for discardable data such as Sitecore sessions - for which we have no use after the SessionEnd event. Are th...
Personally I've always seen and treated Solr as a transient index, not a persistent storage solution. Whereas MongoDB has always been treated as a storage solution, and not much of an index. But this is my personal treatment, not saying that Solr can't be used as a persistent store. If you need to access the data dire...
What weighs in when migrating lots of external content to MongoDB and/or SOLR? I am tasked with importing a large bulk of transaction data and make it available to my Sitecore solution. We're talking roughly 10 million transaction records that we need to be able to utilise real-time on the site. I've already ruled out...
I think your best option (requiring no code or overwrites) would be to configure UrlRewrite to filter out the header. There are already half a dozen reasons why you might have this module installed already on your server - might as well use it. Open up UrlRewrite for your site, and click "View Server Variables". Th...
How to set X-Frame-Options to deny? I have a recently upgraded solution, now running on Sitecore 8.1-upd3. Apparently in this version, Sitecore includes a http module to include a X-Frame-Options header, set to SAMEORIGIN: <add type="Sitecore.Web.XFrameOptionsHeaderModule, Sitecore.Kernel" name="SitecoreXFrameOptionsH...
So out of the box it is not possible to use different search handler through Sitecore SOLR content search. Sitecore's SOLR implementation is based on SOLR.NET, which hard codes the search handler to use in the "SolrQueryExecuter" class. /// <summary> /// Default Solr query handler /// </summary> public static readonly...
Can I set up Sitecore ContentSearch to use a separate Search- and Requesthandler on SOLR per site? As the question says; do I have any options of setting/defining my own Search- and Request-Handlers for Sitecore ContentSearch, based on the active site? Skimming through ContentSearch configs, I'm not even sure where t...
The above queries are correct for checking for any renderings that have not been set by standard values. For those set my standard values only the queries will return no results. If the page has been edited in content editor or experience editor then results will be returned.
Database Query for Sitecore database final renderings fields I want to query the Final renderings fields for an item in Sitecore directly against the database to check if they have ever had values. I have created the following query but want to be sure it's correct: SELECT TOP 1 [Id], [ItemId], [FieldId...
In a clean install of Sitecore 8.1 update-3, the templates and their related sections/fields are always created in English, no matter what language the user may be working in from the ribbon: But if your user/developer has changed their language preference in their profile (Control Panel > Region and language option...
Force template versions in English In a multi-language solution, the developers switch back and forth between multiple languages when creating content, testing, etc. If the developer forgets to change the context language to English, before creating a new template, only a version in the current context language will...
There are a few options that may work for you: Disable the tracker in code behind Set Tracker.Enable to false in the pre-initialization stage of your page: protected override void OnPreInit(EventArgs e) { Sitecore.Analytics.Tracker.Enabled = false; } Disable tracking for the page item If your error page is re...
Disable xDB tracking for single requests I am using our own Sitecore Error Manager in a Sitecore 8.2 project. If an item is not found or an error occurs, our error page is called within the current client request. This error handler calls a configured Error content page within Sitecore. Since the introduction of the ...
Check that the users' Roles have access to the Languages they are attempting to edit. You can do this by opening the Access Viewer, selecting the role, and navigating to System/Languages. Don't just check the Read and Write settings, it's the Language Read and Language Write settings that control access to Items based ...
Content editors are not able to edit versions of different language Sitecore 7.1 Has anyone experienced that content editor is able to change only one language (Dutch in this example) but not the English? Both languages have more than 5 versions. The strange thing is, when you select the languages on the top right sid...
Disclaimer: I've never actually tried this myself. But looking at the code you're using, there are two base conditions for the conditions you're dealing with. And based on your own statement; it works when you use one of these - you just want to get rid of having to define an operator for your condition. public abstra...
Binary rule for list segmentation We have custom facets for contacts and these facets are used for segmentation in lists (segmentation rules defined at '/sitecore/system/Settings/Rules/Definitions/Elements/Segment Builder'). Segmentation works fine if the condition type inherits TypedQueryableOperatorCondition<T, In...
After reviewing Sitecore's upgrade documentation (All 8+ versions are listed here: https://dev.sitecore.net/Downloads/Sitecore_Experience_Platform.aspx. Each page has a link to it's Upgrade Guide which indicates pre-requisites for installation) the upgrades you would need to perform to get to Sitecore 8.1 Update 3 woul...
Upgrade from 7.5 to 8.1 Update 3 We are currently running version Sitecore.NET 7.5 (rev. 141003) and would like to upgrade to Sitecore 8.1 Update 3. Does it make sense to do an incremental upgrade in the following order? Sitecore.NET 7.5 (rev. 141003) Sitecore 8.0 Sitecore 8.1 Sitecore 8.1 Update 1 Sitecore 8.1 Upd...
I've researched this a bit myself and come up with the following answer. If there's a better, more general way of answering this for every dialog, or if anyone has more specific information about how everything is set up please don't hesitate to answer! As of Sitecore 8.1 Update 3 (I'm not sure how many versions this ...
In the "Select Media" dialog, where are the search facets defined at in Sitecore? This is for Sitecore 8.1 Update 3. In the Select Media dialog that pops up on certain media fields (for example, clicking Browse on an image field), I want to know where the search facets are defined at. Are they defined within the CMS...
Making wildcard queries work I had exactly the same issue with a custom Lucene query. The fix was to use .MatchWildcard() instead of .Contains(). In your case, to prevent escaping in both instances, you'd need to replace i["fieldName"].Contains(role) with // C# 6 i["fieldName"].MatchWildcard($"*{role}*") // C# 5 ...
Why is Sitecore not sending a correctly formed query to Solr? I have a site that I have upgraded from v7.5 to v8.1. In addition I have changed from Solr 4.7 to Solr 4.10. In my general search routine I am trying to filter out content items based on Sitecore role membership and which roles have read access to an item ...
There are OOTB options. Take a look at this answer here. Removing all references to an item using OOTB tools All of the proposed answers will require you to (temporarily) delete the item and rely on Sitecore's remapping tool. But you won't lose your rendering. As far as safe goes; it's the safest way I can think of....
Safely replacing all references to an Rendering with another I have a controller rendering which is referenced by the standard values on most of my page templates and I need to substitute it everywhere it is used to use a different controller rendering instead. I want to do this in a safe way without deleting the ite...
I suggest you use a SearchDataSource and then bind it to your ListControl. Check this post for binding example: https://visionsincode.wordpress.com/2016/10/17/put-json-data-in-your-searchdatasource-and-bind-it-to-searchabledroplist-sitecore-speak/ Now, in your code, if you do this (jsondata.Communications needs to be...
Example of populating list in experience profile page with JSON data I am setting up a custom tab with custom facet data in the Experience Profile. I am successfully returning text values to the screen. Now, I want to populate data into a list control. Are there any examples of this. In my AdditionalInfoPanel, I hav...
You cannot. Lucene is a "local filesystem" technology. If you want something that is shared between multiple Content Delivery server instances; you need to switch from Lucene to SOLR. If you're using the recommended Sitecore ContentSearch APIs this is (mostly) a relatively simple matter of switching your configuratio...
How to maintain Sitecore Lucene Indexes in a huge content delivery web farm? Sitecore keeps a local copy of the lucene index in the file system of each instance and doesn't support sharing in the indexes between instances. How can I achieve this?
I rebuilt the index completely and that seems to have fixed the problem. I am no longer getting the NULL error.
Why would SearchResultItem.Paths be null? I am using Sitecore 8.1 with Solr 4.10 doing a general site search. I have a repeater on my search results page and I am binding the results to that repeater. For some reason in my QA environment I am getting an error when I try to access searchHit.Document.Paths. It is al...
Based on comments, the answer to this question appears to be data issue within the Sitecore Database itself. It appears the issue resolved itself after performing a database restore. So, some conjecture on how this might happen: If the Display Name field was somehow duplicated indicating that there were two fields w...
Unable to change DisplayName of the item In this curious case I'm facing here, I'm unable to change any item's Display Name. I have tried changing DisplayName from Ribbon menu, from Appearance section and Sitecore Rocks. I can write new text but after save when item is reloaded it is still old Text in DisplayName. I ...
You could probably write a custom event handler for the item:versionAdded event. In the event handler you can extract the item the event was fired for and inspect for any data source items below it in the tree, adding versions to the data source items as you go. Just be careful you don't end up in a loop, as saving an...
Adding a new language version of a component in Experience Editor We're building a multi-language site, focusing on Experience Editor. When browsing to a page that doesn't have a version in the current language, you are given the option to add a language version: This functionality doesn't appear to extend to any c...
If you decompile and have a look at the Sitecore.Data.Items.ItemEditing class, in Sitecore.Kernel, you will find that all the EndEdit(bool) method does (and the relevant parts of its overload methods do) is essentially wrap the the call to ItemManager.SaveItem with an EventDisabler. Solution 1: To apply the same tech...
"Silently" Create Item - Create Item Without Triggering Indexing or other Events I know that when I edit items, I can pass true to the EndEdit method to save the item without triggering events/indexing on save. Since I almost always want to edit an item after creating it, it seems silly to me that my item should be in...
The Azure Module has been deprecated from Sitecore 8.2. We will be updating the module for 8.1 to support; new Azure SQL and SDK and most important change to Redis Cache Session State Provider (as the In-Role Cache service being shut down end of November). The new Sitecore Cloud offering will be launched with Sitecor...
Sitecore Azure deployment error - Sitecore.Azure.UI.Pipelines.PreAutomation.CheckHostedService failed I'm attempting to deploy an 8.2 site to Azure. In the Sitecore Azure tool, when I deploy to the Local Emulator, the web files are partially copied to the package location and the long error below is thrown. xDB Cloud ...
Update: I have removed technical details about the vulnerability, since it is still present on many Sitecore installations world-wide. The Quick-and-Dirty fix If you want to remove the vulnerability quickly and without restarting your Sitecore instances, just delete PushSession.ashx—it's used very rarely anyway, and ...
Technical vulnerability details on Sitecore critical vulnerability (SC2016-001-128003) What are the technical vulnerability which are covered by the critical vulnerability (SC2016-001-128003)? The KB article doesn't cover what the vulnerability is.
I ended up getting it working, but not using the RenderControl() method. It turns out, that I could just call the GetControl() to get the control for the sublayout afterall, and append that control to the child controls for the actual view. Moreover, I found that it was necessary to set the datasource, before calling t...
Sitecore 8 Webforms - Calling RenderControl() on Sublayout returns null I'm currently having some issues, while trying to render a sublayout programatically on the server-side. Basically, I want to render a sublayout found on the item myItem, that has a single rendering (sublayout) on it. The criteria is that it shoul...
With a default install of Sitecore the Publishing runs as a Job. If IIS or the server is restarted, or the Application Pool for your site is Recycled the publishing task will be terminated, even if the Job did not fully complete. Once your site is brought back online, you would be required to republish in order to comp...
What is the impact of enabling Sitecore.Publishing.Recovery.config What is the impact of enabling Sitecore.Publishing.Recovery.config? Our CM environment consists of load-balanced Azure VMs with Azure PaaS for content delivery.
The behavior you are describing is expected if your presentation version-specific. Support for versioned Presentation Details is a native feature of Sitecore 8, and you can control the versioned (final) or the shared presentation when editing the presentation details of your item. In the screenshot above, note tha...
Language item-fallback error when using Sitecore.Mvc.Helpers.SitecoreHelper.Placeholder method When trying to use @Html.Sitecore().Placeholder() method on a language versioned fallback item, it yields no results. I have verified that the context item falls back in Sitecore, and that the @Html.Sitecore().CurrentItem...
I would discourage you from copying your items into bucket in this case. According to Sitecore's documentation: When you store items in an item bucket, the parent-to-child relationship between the items is removed, and instead the items are organized in a folder structure according to the date and time they were c...
Create bucket items from external database We are migrating our legacy application in sitecore. We have a large database that we want to reuse in our sitecore application specially dbo.Product table. Product table contains ProductName, ProductID and other foreign key references. We are using buckets for Product creati...
You could create a function that checks the fieldtypes.. based on the renderField pipeline, which is executed in the fieldRenderer you should include these types: rich text single-line text text image link general link internal link multi-line text memo date datetime word document integer number That should be the ...
Which Sitecore fields can be rendered using a FieldRenderer From my knowledge, there is a set of fields that can be rendered out using a FieldRenderer like text, numbers, dates, etc. Additonally, there are also fields that cannot be rendered out, such as fields that stores ID's or list of ID's, like links, references,...
The solution I used was the publishing Roles (as in the description) in addition to a workaround for the bug in Sitecore mentioned above. You can find the full solution here Update: In short, the workaround to overcome the bug in Sitecore was to override Sitecore's 'PublishForm' and uncheck the publish with sub-items...
How to revoke publishing of sub-items for a role? I need to prevent certain roles from publishing sub-items. I was able to hide the 'Sub-items' option in the publish dialog by revoking 'Read' from '/sitecore/system/Settings/Security/Policies/Publish/Can Perform Republish' under Core DB. However, if the last time th...
The code looks like it should work. I would make the following changes to just make things a bit more robust: Add a [HttpGet] attribute to the Login action result. It could be that over https the route is hitting the Get action result first, but because it is not limited to Get it will accept Post also. [HttpGet] p...
Error when using custom routes with https: "Attempt to retrieve context object of type 'Sitecore.Mvc.Presentation.RenderingContext' from empty stack." We have a login/register modal that is being called via javascript on the front end. I created a custom route to point to the right action controller, and it works fine...
The code you have posted will always return true by the nature of how Sitecore security works. If SelectItems() returns an item, that means the Sitecore.Context.User can read it. If the current user did not have access to the item, it would return null. So you have options depending on your use case. If you just want ...
How to check access permissions on items for a user via the Security API? I am trying to check Read permission for the current user on a specific item like the following: Sitecore.Data.Database.GetDatabase("master") .SelectItems("/sitecore/content/Settings/Item1")[0] .Security.CanRead(Sitecore.Context.User) ...
From what I can find - the encodeNameReplacements are only used in MainUtil.DecodeName, MainUtil.EncodeName and MainUtil.EncodePath - These are used in both resolving url's and building them. So if the encoding is not there or if it encoded to something different it should still work ok. I could not find anything that ...
Ramifications of removing encodeNameReplacement for dot (.) Sitecore has a number of encodeNameReplacements in config OOTB, I fully understand what they are and what they do since I have previously posted about it. The issue we have is we have a number of compressed (software) files, which are of the format filename-...
You're missing Windows Process Activation Service on your computer. Check Control Panel > Programs > Programs and Features > Windows Process Activation Service. More details here: https://serverfault.com/questions/384237/service-was-was-not-found-on-computer
Error when trying to install Sitecore using SIM - "Service WAS was not found on computer" I'm currently trying to install Sitecore 8.1 rev. 160519 using SIM Tool 1.4.0.92 rev 150618 and I'm getting this error message in the logs: > 1 12:48:04,739 ERROR Service WAS was not found on computer '.'. System.InvalidOper...
The GeoIP service can be made to resolve at zipcode level. That said; you cannot rely on it to personalize your content for your visitor - real time. For that you need to look at other options - like creating your own MaxMind integration or looking at other alternatives. See also: Sitecore IP Geo location Service-Pers...
Sitecore GeoIP service with zipcode We have a need to detect the user location at the Zipcode level and present him with personalized content. We are looking to see if Sitecore GeoIP service with 8.1 supports Zipcode accuracy? Please let me know if anyone has worked with GeoIP service at Zipcode and % of accuracy tha...
If you enable security via the SearchSecurityOptions in the CreateSearchContext checking the access rights should be done for you. Although I have heard that the TotalResults property is not ok when doing is and items are filtered out - also heard that paging might not be accurate. But the result set should be ok. Mo...
How to query Solr and only return content items that the current user has permissions to view? I am building a Sitecore 8.1 / Solr 4.10 site. I want to be able to do a general site content query through the web database and only return content items that the current user has permissions to view. To me this seems like...
If you are talking about following templates (not any custom that I am not aware of): Dictionary folder: {267D9AC7-5D85-4E9D-AF89-99AB296CC218} Dictionary entry: {6D1CD897-1936-4A3A-A511-289A94C2A7B1} Then the answer is YES. In one open source module we haven't change many dictionary items for a long time (5 years ...
Sitecore Package Created on One Version and Imported to a Different Version If I create a Sitecore package for some Dictionary items with Sitecore 7.5, can I import the package to a site running on Sitecore 8.1 Update 3?
You can't do that out of the box with Fortis because under the hood it is just using the standard Sitecore Field Renderer. This is what is adding the width and height attributes. There is a nice solution here that adds a new processor to the RenderField pipeline that strips out those attributes if a parameter called r...
Is there a way to supress rendering width and height attribs using Fortis Image.Render? Using Fortis Image.Render, is there a parameter to suppress rendering the Width and Height attributes? Example of the image: @Model.ImageField.Render(new { @class = "my-class-name" })
The problem here is with FillDB .. it uses quite a rough-and-ready script to make items, and so it generates items that do not have a unique revision field (it leaves this field blank so it defaults to the Standard Values field - it does this for quite a lot of the standard fields). For the Publishing Service to publi...
Sitecore Publish Service not publishing new items I'm experimenting with the new Publish Service in a sandbox environment created with Sitecore Instance Manager. I followed the setup steps and I am able to publish individual items successfully. For example, I blanked out the Default Workflow field on the Sample Item s...
I'm not sure it's necessarily a case of that they won't fix it, it's just a case of priority. Like all development projects, they'll have a backlog of issues and features that they want to address, and how they go about prioritising them is up to them. I'm not sure of the original decision behind the 302 redirect, an...
Why does Sitecore redirect with status code 302 for page not found errors? I know that there are solutions for this, and I have written some myself, but what I don't understand is why Sitecore doesn't redirect with 404 OOTB for page not found errors. Does anyone know if there is a reason why Sitecore doesn't fix thi...
It looks like there is an issue with the CreateCrmEntity save action. I logged a ticket with Sitecore Support but in the meantime I was able to resolve the issue by adding the Context property to the save action as follows: public class CreateCrmEntity : Sitecore.CrmCampaignIntegration.Submit.CreateCrmEntity { pub...
WFFM Dynamics CRM Campaign Itegration - Chaining save actions We're currently trying the integrate the WFFM Save Actions provided in the Dynamics CRM Campaign Integration (2.2) to create a contact, then create an CRM Entity and assign it to the contact. The module appears to provide this option, allowing us to select ...
It seems I was very close with overriding Sitecore's FormsAuthenticationProvider. With our first attempt we could successfully prevent cookie replay attacks, but we were unable to access the Sitecore backend! Only GetActiceUser() is called when signing in to the Sitecore backend, the other methods not at all. So, on ...
How to prevent a cookie replay attack? As a result of a security audit, we must prevent an attacker from being able to do a cookie replay attack. Apparently this weakness has been around in the .NET framework for ages. There is also an old Microsoft Knowledge Base article on that subject. In contrast to the workaroun...
The replace button doesn't appear on Experience Editor in 2 cases : When rendering doesn't have any renderings or sublayouts in Complatible Renderings field. When Renderings or sublayouts are not in Allowed Controls of the Placeholder Settings.
"Replace Rendering" in Experience Editor disabled We have renderings which have compatible renderings configured. The button in the Experience Editor (Sitecore 8.1 Update-3) shows up on our local development environments and renderings can be replaced without problems. However on our testing environment, the button is...
Assuming you're using EXM 3.3 (or later) this can be done by overriding the dispatchprovider. You'll find this element under /sitecore/exm/eds/dispatchManager in the configuration (Sitecore.EDS.Providers.CustomSMTP.config or Sitecore.EDS.Providers.Dyn.config) e.g. <dispatchManager defaultProvider="default"> <provi...
EXM: Adding "List-Unsubscribe" header to emails We are currently trying to improve spam-scores for our customers' email campaigns and have used the tool https://www.mail-tester.com/ which states that we are being penalized by not including a List-Unsubscribe header/functionality. Does anyone know (or have implemented...
You can use this to set it to empty. With this you don't need to wrap the change with BeginEdit and EndEdit $item."__Display Name" = "" You only need the quotes here as there is a space in the name, a field without a space can be accessed like so: $item.MyField If you actually want to reset the field value, rath...
How to reset DisplayName to empty using Sitecore PowerShell Extensions? I wanted to know better way to reset Display Name to empty using PowerShell scripts. I have written below script.. $item = Get-Item "/sitecore/content/home" $item.Editing.BeginEdit() $item["{B5E02AD9-D56F-4C41-A065-A133DB87BDEB}"] = "" $item.Edi...
As the comments on the question rightly point out; there could be a number of potential sources for this event that happened to you. As such, I don't know if a real answer could ever be found. That said, I will attempt an answer. What you're getting here is just my experience summed up to the best guess I can come up...
After applying the Q3 2016 Security Update our sites went down As you all might know Sitecore issued a critical security hotfix, after applying the fix to our client sites, most of them went down for on average 30 minutes before going back up again, and one of them is still down, does anyone know what is causing this?...
There is already one blog post on this topic on Internet Code snippet from the blog as below: Add-ItemLanguage -Path "master:\sitecore\content" -Language "en" -TargetLanguage "de-DE" -IfExist OverwriteLatest -IgnoredFields "" For recursive you can try below PowerShell script Get-ChildItem /sitecore/content/home -...
Create new language version for content branch Is there a way in Sitecore Powershell Extensions to create new language versions of a branch in the content tree? I need it to copy exactly the presentation details set on the current language to the new language. I've found this article https://www.cognifide.com/our-blo...
It's not so much of a technical difference, as you can see, with a few settings you can get the goal to act just like an event. The difference is more of a conceptual one: Goals Goals are "events" that occur at the end of a key user journey. They offer meaningful insight into how well your site is doing: Examples: ...
When would you use a Page Event? In Experience Marketing terms we have something called a Page Event. Sitecore's documentation explain a Page Event like as such: Events track visitor activity on a website. Tracking events helps build up a more complete picture of a visitor’s behavior as they navigate your web...
When is the decay rate actually applied to the Contact Behaviour Profile? Daily, weekly, monthly? According to martin miles, and martin davies it is per interaction. Is that configurable somewhere? Martin Miles PDF presentation says at a given rate, which can be specified using the rules engine. I'll update answer a...
What does a profile's Decay Rate actually do? Profiles have a Decay rate field. The Sitecore documentation explains it as: ...you can control how long an individual profile or pattern card is relevant to the Contact Behavior Profile by setting the decay rate. The decay rate is a percentage that expresses how r...
The minimal out of the box sitecore role that gives you such capabilities(considering no overrides were done) is sitecore\Sitecore Client Designing If you need to assign a role to your own custom role you can give read access over the buttons chunk beneath /sitecore/content/Applications/WebEdit/Ribbons/Chunks/Layout M...
Where is shared and final layout in the security Editor I want to let the editors change between shared layout and final layout in the Experience Editor, but currently, they can't view that option without adding a new role to them. How can I grant access to that part using the security editor? Edit: Sitecore 8.1, the...
After currently executing "line of code" will finish its job then script execution will be immediately suspended once you click Abort. So you don't have to control execution by your own. What is currently running must finish its work (single instruction, let's say Write-host 'test', this cannot be interrupted anywhere...
PowerShell ISE: Function of Abort button? I have noticed that clicking the Abort button in the PowerShell ISE doesn't actually cause the background job to terminate. I guess I shouldn't be surprised since arbitrarily terminating a thread that is running unknown code could cause some pretty big problems. However, it g...
Because Sitecore supports server-side responsive rendering, it's very easy to use the Device feature of the CMS to support AMP. AMP Layout (using Razor) This example is adapted from Google's example markup and Razorified: <!doctype html> <html amp lang="en"> <head> <meta charset="utf-8"> <script async src=...
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?
Disclaimer: This Ain't Pretty -- But It Works So after many hours of my nighttime and sleep chewing over this question, I have finally figured out the path. I will warn you, it's not easy. First let's discuss environment. I'm using Sitecore 8.1 - Update 3. For the most part this is a vanilla install. Second, there ar...
Adding a telephone link (href=tel:) to the general link field type I want to have fields that are rendered as telephone links, e.g. <a href="tel:12345678">. Can I do this by modifying the standard field type, or by creating a new field type? I have tried using an external link and setting the URL to tel:12345646 in t...
I know this is late, but here are the undocumented properties for the Admin Service secure installation: ADMIN_SERVICE_CES_SERVER_NAME This is used for the certificate Common Name ADMIN_SERVICE_PORT Port for the secured Admin Service. The dialog will set it to 443 in an attended installation ADMIN_SERVICE_CERTIFICATE...
Coveo for Sitecore CES silent install fails cert generation Putting this question to the Sitecore crowd as it relates to the overall Coveo for Sitecore install, specifically the installation of Coveo Enterprise Search (CES). I'm trying to automate the installation of Coveo CES server using the MSI bundled in the EXE ...
Hetal, I am just going to add it as an answer for potential users to benefit from. It could be one of the following: Glass not being installed/configured properly (Glass DLL's or configs missing or are of previous versions) The Datasource item is not published (mentioned by Marek) In your case it was Glass not pr...
Glass Cast issues after upgrading from Sitecore 7.2 to 8.2 So, I upgraded a Sitecore solution from 7.2 to 8.2. All works well, except for the site. I keep on getting the error in my views like the one below: The model item passed into the dictionary is of type 'Sitecore.Mvc.Presentation.RenderingModel', but this...
We are using Zookeeper with Sitecore 8.1 Update 2, and as per the documentation here: https://zookeeper.apache.org/doc/r3.1.2/zookeeperAdmin.html we are using 3 instances. This is the minimum required. Three ZooKeeper servers is the minimum recommended size for an ensemble, and we also recommend that they run on se...
Sitecore Content deliveries and Solr with High availability I'm trying to find a recommendation from Sitecore in terms of configuring Solr for high availability and how to use it properly with Sitecore. Does anybody know where I can find it? If not, I'm considering these options, any preference or alternative? Master...
Technical details Starting from Sitecore 7.2, there is an option to publish an item with "Publish related items" checked. If you do that, the <getItemReferences> pipeline (defined in Sitecore.config) will be executed to get additional items that are then added to the publishing queue. By default, it returns the follow...
What does the "Publish related items" checkbox do in Sitecore? When you publish an item in Sitecore through the Publish item dialog, you are offered several options. You can choose between Smart publish or Republish, you can also choose whether to Publish subitems or not. These options are pretty self-explanatory. H...
With MVC 5, you should have the option to add an MVC 5 View Page, like so, Using this option gives you a simple popup to type in a name, then it generates a cshtml file with no scaffolding. @{ Layout = null; } <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title></...
Adding Views - VS Adds Scaffolding and NuGets Can people suggest a good way to add views to a project in Visual Studio? The standard MVC way adds scaffolding (Folders named for controllers) and NuGet packages (MVC, Razor, WebPages, etc...) I'm stuck copying existing views and renaming, or adding a text file and adding...
About spaces and quotes If there is no space, then field:foo treats foo as a string value. You could write field:"foo" but you don't have to, since the search term doesn't contain a space. If there is a space included, then quotes are required around the value, otherwise the query won't be parsed correctly: field:"fo...
How to query Solr with spaces and slashes in the filters? I have a Sitecore 8.1 instance using Solr 4.10. I have a custom field in my Solr index called read_roles. It is a list of Sitecore roles that can read a given item. Here is an example of what that looks like in the index when viewed through the Solr UI. "read...
It's also important to know that while Mongo is not available, analytic data is being collected. Sitecore will store the data to the file system until such time the collection server comes back online. From Akinori Taira @ Sitecore: In the event that the collections database is unavailable, there is a special ‘Su...
What happens when MongoDB is down? We are building an infrastructure for xDB internally and our internal network team asked us what would happen if the MongoDB instances were down. We, of course are deploying MongoDB with Replica set but they want to be sure it will not bring down the site. I remember from somewhere...
There is a package directory for the Update Wizard packages at the following path under the site root: \sitecore\admin\Packages
Where do upgrade packages go to when uploaded? When you are upgrading Sitecore you install an upgrade package using the update installation wizard located here: http://yourhost/sitecore/admin/UpdateInstallationWizard.aspx Where does it go to when it gets uploaded? I've looked on the file system but didn't find it. I ...
This answer does not exactly match your question, but I believe it matches your requirements based on the comments you have made. If you want the Item Bucket search features on the parent item but do not want the child items added into sub folders you can easily add those features to the parent item. Make sure that y...
Is it possible to create a bucket that doesn't use sub-folder buckets? I have an item that will contain a large number of subitems as direct children, which I would like to give bucketing treatment to. Unfortunately these items don't have a reasonable way to be grouped in subfolders. I've created a custom rule in It...
For non-rendered fields, or things that are handled via javascript, etc, I use a combination of Edit Frames and EE views. The EE Views let you present the content in a way that can expose content and fields that might not otherwise be easily accessible and Edit frames let you edit fields that aren't rendered or have co...
Is it possible to edit fields in the Page Editor that are shown on hover? I have a menu where the submenu area is shown when you hover over the top menu option. The top option is a link field and the submenu is a rich text area. When I hover over the top option the submenu area is shown, but as I move over it the subm...
The solution that ended up working for me was to use the DeviceDefinition.GetRenderingByUniqueId method with the RenderingReference.UniqueID object: foreach (RenderingReference renderingReference in parentRenderingReferences) { /* ... unrelated code removed ... */ var layoutField = new LayoutField(contentItem....
How can you get a unique ID for a rendering on a specific Sitecore item? I need to programmatically update all of the instances of a particular rendering attached to a Sitecore item. This is the code I first tried and failed to use: foreach (RenderingReference renderingReference in parentRenderingReferences) { /...
Style Sheets are added using SPEAK via Sitecore Rocks in Visual Studio. The point of this answer is not to show you how to install Sitecore Rocks, however, I will should you how to add it. BEST PRACTICE In the Below Examples, we are working with SPEAK UI through Sitecore Rocks. This is recommended, as Sitecore's Conte...
How can you assign a style sheet to a custom tab in the Experience Profile? I note that the out of the box tabs of the Experience Profile reference a custom style sheet. <link href="/sitecore/shell/client/Applications/ExperienceProfile/Contact/Details/DetailsTab.css" rel="stylesheet" type="text/css" /> <link href="/s...
Move the root item. Step 1 Step 2 Result EDIT: Included to add this And yes, as you point out in comments. Instead of publishing this change, execute this operation in both "master" and "web" (and as needed, if you have more databases in play)
What is the fastest way to relocate lots of items in the tree? We have a Sitecore site that currently exists in production with a lot of content, on the order of half a million article items and supporting content around those articles. We have to relocate those items to another area in the tree (for business reasons ...
UPDATE March 2018 Docker is still not supported, but you can find some base images here: https://github.com/Sitecore/docker-images This repository was created by combining efforts / assets from repos such as sitecoreops and sitecore-nine-docker and sitecore-docker repos. Docker is currently (as of May 2017) not s...
Where can I find Docker Images for the different Sitecore Installs? I have seen a lot of good tutorials about how to setup Sitecore to be used in a Docker container. However, this still gives me the problem of configuring the different server roles (i.e. CD, CM, Processing and Aggregation, Reporting) based on my under...
Sitecore-specific replica set considerations Your question is partially answered here: What are the best practices for MongoDB replica set latency? That question discusses how latency affects a replica set and how to set it up properly for xDB. As a short summary, you should set up xDB to only read from the primary...
Is it possible to distribute my xDB MongoDB databases over 3 locations? So I've been reading up on geographically distributed MongoDB setups. I am juggling around an architectural approach/concept for a project. This is roughly what I am looking at. A centralised Content Master setup "somewhere" in the Cloud Regio...
As JF said in the comments, indexing CD should be avoided at all cost. Also, if you are using several CM, you need to configure them to avoid competition between instances. See: developers.coveo.com/display/SitecoreV4/Coveo+for+Sitecore+Scaling+Guide Now indexing slowness can be caused by several factors. First of all...
Speeding up Coveo reindex I've got a CM server with Coveo for Sitecore installed (free edition) and Coveo Enterprise Search on a separate server. I set up Sitecore with Coveo on CM and reindexed relatively quickly. When I set up CD, I have it point to the CM server's implementation and call the search API/admin servic...
As asked in comments above; normally /bin files should not be locked for any particular reason (other than when the site is just starting up) - so I'm not entirely sure what's going on. I can help you on the intermittent part of your question however; I would just flip the app pool before starting the file publish tas...
Publishing projects fails because of locked files The solution I am currently working on, the team made the decision to use habitats way of publishing projects in our solutions via gulp tasks. We are finding out however that periodically when we try to publish to our web-root the files are locked and the whole publish...