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
‹ Showing all posts categorized as ‘Development’ ›
Leave a Reply:
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:
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"
Leave a Reply:
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:
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:
Sitecore Field Suite
Install the Package (You need to sign into Sitecore’s Marketplace): Sitecore Marketplace Download the Instructional Guide: Instructional Guide Contribute to the Suite: GitHub I am very happy to announce the release of the Sitecore Field Suite module, providing Sitecore users a … Continue reading
Leave a Reply:
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:
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"
-
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);
}
Leave a Reply:
.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"
-
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)?
Leave a Reply:
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"
-
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?
-
Great Work … What version of vault plugin are you using for this ?
-
How can I compile and install it? Some screenshots would be welcome.
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!
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!!
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!!
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