Enable SSL for sending emails on Sitecore

I was asked to use a GMail server to send emails from Sitecore with. This is actually a pretty reasonable request – but GMail only supports connections over TLS or SSL. Configuring Web Forms for Marketers to use this was proving … interesting, until I found this excellent article by Mark CassidyContinue reading “Enable SSL for sending emails on Sitecore”

Enable SSL for sending emails on Sitecore

Annoying Sitecore Email Settings

It would appear that Sitecore’s mail settings are, mostly, in a handful of settings in web.config. At one level, they are, and a simple patch file can be used to set them for your system. For example…  Continue reading “Annoying Sitecore Email Settings”

Annoying Sitecore Email Settings

Make Sitecore record the class writing to the logs

I’m a big fan of writing into your logs the class and method that is currently executing – it makes fault finding so much easier. Typically I’d do this with reflection – but it turns out that you can do this with a small change to Sitecore’s configurationContinue reading “Make Sitecore record the class writing to the logs”

Make Sitecore record the class writing to the logs

Appending to the _content field in Sitecore Search 7.2 and 7.5

The _content field in Lucene for Sitecore is basically the full text index. If you index things like PDFs, Word documents, etc., then the results of the IFilter get stored in the _content field.

You can add computed fields into the _content field simply by specifying them with the name ‘_content’. However, I found some differences with how patch files behave.  Continue reading “Appending to the _content field in Sitecore Search 7.2 and 7.5”

Appending to the _content field in Sitecore Search 7.2 and 7.5

Awkward Sitemap XML module

So, I was reviewing a few Sitecore log files for a customer of ours, and I kept coming across the following entries.

ManagedPoolThread #15 10:26:56 WARN The serachengine "Http://google.com/webmasters/sitemaps/ping?sitemap=sitemap.xml" returns an 404 error
ManagedPoolThread #15 10:26:57 WARN The serachengine "http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap=sitemap.xml" returns an 404 error

Capture2
This struck me as interesting. These are calls to different search providers to tell them that your site’s sitemap file has been updated, and should be read again (so that new content could be indexed). This is all from a nice little module on Sitecore Marketplace. We use it quite a lot. However, I spotted a few issues… Continue reading “Awkward Sitemap XML module”

Awkward Sitemap XML module

Programmatically reset a a Sitecore Item’s presentation details

Just a quick post – should you need to reset an item back to using the controls defined on its template’s standard values, you can easily achieve this through code:

using (new Sitecore.SecurityModel.SecurityDisabler())
{
using (new Sitecore.Data.Items.EditContext(item))
{
item.Fields["__renderings"].Reset();
}
}

I’ve tried it, and it worked.

Programmatically reset a a Sitecore Item’s presentation details

Sitecore – Switching Indexes on Rebuild

The project I’m working on makes fairly extensive use of Sitecore’s search functionality, and I realised that one problem I could foresee was that of Index updates. When rebuilding the search index, by default Sitecore deletes the existing index, and then builds a new one. While this is going on, search is not available. That’s not really acceptable… Continue reading “Sitecore – Switching Indexes on Rebuild”

Sitecore – Switching Indexes on Rebuild

Sitecore – Have your Patch files apply last

Just a quick tip; I am using Patch files to update some of the settings of my Sitecore instance. Some of these settings are also patched by the standard Sitecore config files. How do I make sure that they apply last?

Well, it turns out they’re processed in alphabetical order. That’s fine, I can prefix files with ‘z’. But there’s an even better tip – subfolders are applied later. So I’ve added a folder called ‘custom’ and it is applied after all the default patch files.

Example Visual Studio Structure

I found this here: http://www.partechit.nl/en/blog/2014/03/sitecore-and-the-last-include

Sitecore – Have your Patch files apply last