Author: Mark

  • Querying generated Template Models with Glass

    I have written some helper methods for working with generated Template Models and Glass.Mapper. Main goal is to make it easy for developers to query the Sitecore database using generated Template models. See Mike’s post for details on what Template Models are. Examples Let’s start with this fictional content tree: Now, let us get the…

  • Glass Mapper: Does the number of mapped fields have a performance impact?

    Recently at work, the discussion arose if the number of fields mapped from Sitecore Items to our models would have a performance impact. The question was if we should limit the number of mapped properties in our IGlassBase interface to gain performance. I did a simple test by mapping an item to a test interface (IGlassBaseTest) and…

  • Experiences with Glass Cache

    In version 4, Glass Mapper introduced a caching mechanism to speed up access to mapped objects. Basically, once an object is mapped, it is stored in Glass Cache which by default utilizes HttpCache in Memory. The next time the same object is mapped, it will be returned from the cache instead of being read from the…

  • Custom FxCop Ruleset for Sitecore

    Recently, my Co-Worker Daniel and I were allowed to present our way of ensuring code-quality using Sonar and custom Sitecore FxCop rules at the first Swiss Sitecore User Group. Our solution is based on the shared source module of Johannes Zijlstra to which we now were allowed to contribute our changes. Thanks for that! If…

  • Failing DNS lookups slowing down site after upgrade

    I ran into a problem today while setting up a content delivery server after upgrading from Sitecore 6.4 to 7.2. After setting everything up, the site ran very slowly and the Sitecore Log started filling with exceptions like this: System.Net.Sockets.SocketException: The requested name is valid, but no data of the requested type was found ……

  • Web Forms For Marketers meets Sitecore DMS

    Web Forms For Marketers meets Sitecore DMS

    I’ve had the chance lately to dive into some more advanced features of the Web Forms for Marketers Module in combination with Sitecore DMS. This blog post shows some of the advanced possibilities you have using WFFM in combination with DMS. Tagging A neat feature you have in when working with WFFM and DMS is…

  • Duplicate entries in custom index on incremental update

    I’ve had a problem with a custom index some time ago. Entries were showing up multiple times when doing incremental updates of the index i.E. when saving an item. The only thing that would clean up the index again would be a full index rebuild. The reason for this happening was, on incremental updates, Sitecore would…

  • Understanding Sitecore DMS Campaign triggering

    Understanding Sitecore DMS Campaign triggering

    Sitecore DMS allows you to launch and track Campaigns. You can set up Campaigns inside Marketing Center. Check the Marketing Operations Cookbook on SDN for more detail on that. Make sure you deploy your Campaigns by clicking Deploy in the Review ribbon afer setting them up. Now your Campaigns are ready to be triggered. Campaigns…

  • PublishAgent skipping all items when CheckSecurity is activated

    We ran into an issue when trying to publish the entire site on a regular basis using PublishAgent. We have it set up to publish the entire site every hour. <agent type=”Sitecore.Tasks.PublishAgent” method=”Run” interval=”01:00:00″> <param desc=”source database”>master</param> <param desc=”target database”>web</param> <param desc=”mode (full or smart or incremental)”>smart</param> <param desc=”languages”>en</param> </agent> We noticed though, that new…

  • Use System.Boolean when indexing checkbox fields

    I faced the issue that checkbox values were not being updated in the index correctly. When I unchecked a checkbox and saved, the index would still have “1” stored as value for my field. To prevent this issue, use Sytem.Boolean as type instead of System.String. <field fieldName=”MyCheckboxField” storageType=”YES” indexType=”TOKENIZED” vectorType=”NO” boost=”1f” type=”System.Boolean” settingType=”Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration, Sitecore.ContentSearch.LuceneProvider” />…