1. Skip to content
  2. Skip to sidebar

‹ Showing all posts categorized as ‘Development’ ›

Leave a Reply:

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*

Tracking Sitecore DMS with Real Time Analytics

Contribute: GitHub I recently worked on a couple of projects where I implemented the multivariate testing included in Sitecore DMS. During implementation, I found that as I was navigating through the site I had a hard time analyzing the amount … Continue reading

Leave a Reply:

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*

back to top

The Sitecore Field Suite’s General Links Field

Field Suite I built the Sitecore Field Suite module a few months back to provide Sitecore users a more streamlined and informational approach to content authoring. The new Field Suite Module creates a new authoring experience with tooltips to view … Continue reading

Leave a Reply:

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*

back to top

Create and Deploy Sitecore Modules with NuGet

There are a number of ways for developers to move files and items between servers in Sitecore. The primary tools are the Package Designer and Installation Wizard that come out of the box. Other tools include Sitecore Rocks, Sitecore Serialization, … Continue reading

5 Responses to "Create and Deploy Sitecore Modules with NuGet"

  1. I have a shared source module. This module contains all the sitecore configuration file and packages. I want to install the module using NuGet. So How to do that? Can you give me all the steps. So that steps might be helpful for me.

    • Thanks for your interest in creating NuGet packages for Sitecore modules! First, you want to create a NuGet package for your Sitecore module if you haven’t already. This is explained in the section “Creating a Sitecore NuGet Package”, and you can get started with the files at https://github.com/etruong42/Sitecore.NuGet.Skeleton. Once you have your NuGet package, you can install that package using the NuGet package manager. That process is explained in the section “Installing a Sitecore NuGet Package”. If you run into any particular problems, or if there is anything unclear, please let me know!

  2. Getting Sitecore NuGet Package Installation Error
    ——————————————————————–

    I referred below website to create sitecore nuget packages.

    http://vsplugins.sitecore.net/Sitecore-NuGet.ashx

    First, I have created serialize item like (Home.item). I followed all the steps and using the command prompt (C:\ Nuget Pack [test.nuspec]) created sitecore nuget packages. After installing the sitecore package.nuspec. Only I can see the installed item under template/user defined section but the serialize item is not showing under sitecore/content/home or any item.
    It is only installing sitecore/content but not /Home/about item.

    I am getting this error.

    System.InvalidOperationException: Exception has been thrown by the target of an invocation.

    Failed to paste item: /sitecore/content/Home

    Field ‘Page Title’ does not exist in template ‘Homepage’

    at Sitecore.NuGet.Projects.Project.Execute(String request, Object[] parameters) at Sitecore.NuGet.Installing.InstallItems.ProcessFile(LogWriter install, LogWriter uninstall, Project project, String fileName, String database, String itemPath)

    I expanded the Home.Item, but it is containing the ‘Page Title’. Home.Item is a serialize item which is based on Homepage template. If you have any idea behind this error. Please post the answer. Thanks!!

  3. I have a shared source “Sitecore Redirect Module”. This module contains sitecore items and files. Please see the below link.
    http://marketplace.sitecore.net/en/SearchResults.aspx/#query=redirect%20module
    If I am not creating serialization item then, the sitecore items and files are not installing using nuget package manager in visual studio.

    1. How to create serialize item for any sitecore shared source module?
    2. Is it possible to install the shared source module using sitecore rocks nuget package manager?

    Waiting for your kind reply.
    Thanks!!

  4. Ethan Truong says

    I’m sorry to say that I am unable to reproduce the error you are getting. Maybe you could share the .nupkg file that you are trying to install, and I can try installing it and seeing the results.

    To answer your questions:
    1.) Serialize the items that you would add to the Sitecore package and add the serialized items to the NuGet Package serialization folder instead.
    2.) Yes! It is possible! Sitecore modules are Sitecore items and files. My answer to #1 illustrates how to get Sitecore files installed via NuGet. To install files, you can put the files that need to be installed into the Sitecore webroot by placing them in the wwwroot folder in your NuGet package.

    Thanks for your interest,
    Ethan

Leave a Reply:

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*

back to top

Suppress Sitecore Validation Rules with Base Templates

The Challenge Sitecore template items that we create for pages are often made up of smaller component templates that we often call “base templates.” Base templates may be included on many different types of pages, i.e. the home page, a … Continue reading

Leave a Reply:

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*

back to top

Unit Testing with a Data Context

Recently I surveyed how people solve the problem of unit testing with complex objects such as the data context from LinqToSql.  What I found is that it can be solved in several different ways.  However, it seemed no one source … Continue reading

Leave a Reply:

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*

back to top

Leave a Reply:

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*

back to top

Getting Social with Sitecore

It’s Sitecore Symposium week, so it doesn’t seem out of place to look back to last year’s Dreamcore. I had three major takeaways from Dreamcore about what Sitecore is and where it is going. First, a website is only as … Continue reading

Leave a Reply:

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*

back to top

Organizing AutoMapper’s Map Configurations in MVC

AutoMapper makes using the Model-View-ViewModel (MVVM) pattern a cinch. The library simplifies the process of mapping domain models to view models by using reflection and coding conventions. For further reference about AutoMapper and reasons to use the MVVM pattern, check … Continue reading

2 Responses to "Organizing AutoMapper’s Map Configurations in MVC"

  1. R. Schreurs says

    Could you please tell me which .Net framework version is needed in order to get the sample code for Application Start running? I am trying to get it running without web activator. The code does not compile on 4.0. Specifically .Cast(); will fail, as GetCustomAttributes will return an array of objects. For the moment, I will just cast explicitly:

    var attributes = type
    .GetCustomAttributes(typeof(AutoMapperMapCreatorAttribute), true);
    //.Cast();

    // Ignore any types where enabled=false.
    if (attributes.Any(a => !((AutoMapperMapCreatorAttribute)a).Enabled)) { continue; }

    // Execute each of the methods defined by the attributes.
    foreach (var attribute in attributes)
    {
    ((AutoMapperMapCreatorAttribute)attribute).ExecuteFor(type);
    }

  2. R. Schreurs -

    Thanks for the great catch! I omitted the generic type in the call to Cast. So, the population of attributes should be:

    var attributes = type
    .GetCustomAttributes(typeof(AutoMapperMapCreatorAttribute), true)
    .Cast<AutoMapperMapCreatorAttribute>();

    I’ll be sure to update the post.

Leave a Reply:

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*

back to top

.NET’s TimeZone API

Handling dates properly is something that nearly every sufficiently complex software system will have to eventually take into account. Having your application parse and generate dates properly is a real problem that you as a developer must have a game … Continue reading

2 Responses to ".NET’s TimeZone API"

  1. Gabriel Florit says

    Interesting post. Do you have any opinions on Jon Skeet’s Noda project (http://msmvps.com/blogs/jon_skeet/archive/2009/11/06/noda-time-is-born.aspx)?

  2. I’ve read Jon Skeet’s blog before – in fact, this post of his partly inspired my post:

    http://msmvps.com/blogs/jon_skeet/archive/2012/05/02/more-fun-with-datetime.aspx

    Personally, I know very little about Noda time. However, Jon Skeet has a wealth of knowledge about the positive and negative aspects of how the current .NET libraries support date handling and manipulation, and if there is anyone out there that can come up with a “better way” to do these sorts of operations, it would be him.

    It’s something I’ll be keeping track of as the project grows, that is for sure.

Leave a Reply:

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*

back to top

Velir’s Adobe CQ5 IntelliJ Plugin

With the recent release of Adobe’s CQ5 platform (CQ5.5), there has been no mention of updating the canonical CQ5 IDE, CRXDE. This seems like a perfect opportunity for Velir to announce the beta release of a plugin for IntelliJ IDEA … Continue reading

6 Responses to "Velir’s Adobe CQ5 IntelliJ Plugin"

  1. I really like this plugin. I’ve been playing with it a little the past day or two. Any idea on a timeline when all these future features may be incorporated?

  2. I’m glad you like it, Ryan.

    I’m fitting development in around my regular work schedule, so it will definitely be a while before I get to everything on my list.

    What I’m most interested in tackling next is the automatic sync of content.

    Is there a particular feature that you’re looking to see tackled?

  3. Great Work … What version of vault plugin are you using for this ?

  4. Yogesh, this plugin does not depend on vault at all. You can use it with vault if you wish, but it connects to CQ5 through the JCR API directly.

  5. How can I compile and install it? Some screenshots would be welcome.

Leave a Reply:

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*

back to top