TeamCity PowerShell scripts run with “- File” always return exit code zero

TeamCityAre you finding that your TeamCity Powershell scripts are always returning exit code zero (a success) no matter what happens? Even when an exception is thrown and you can see the error message in your build log?

I ran into this problem recently while moving some of my Powershell scripts into script files in source control. It turns out this is not an issue in TeamCity, but rather caused by a bug in Powershell itself. Never fear, there is a workaround!
Read more of this post

Keystone: Adding an MVC view to an existing component

keystone-logoSome Keystone components, like the Accordion and Tabs components, have multiple views. This allows developers to have a different markup for different states. For example, you can present a Page Editor view or a specific view if certain pieces of data are missing. Use the following steps to extend Keystone components to add your own MVC view.

Read more of this post

Styling WFFM required fields on submit

Sitecore 122Sitecore’s Web Forms for Marketers (WFFM) does many things well, but some of the required field styling is a little on the clunky side. For example, if a required field is not filled out by a user, on submit WFFM will display a validation summary at the top of the form with errors for the user to indicate which fields were not filled out.  WFFM will also tag the ‘required’ character next to the field (an asterisk) with a class named ‘scfValidatorRequired’.

However, the input field that the user did not fill out is not decorated in any way. This means there is no CSS class on the field that you can target directly for styling. A user scanning the form may not immediately see where the error is. I wanted to highlight these fields so that the user could quickly find them and below I’ll show you how to do that.
Read more of this post

Moving day always brings out the agile practitioner in me

ScrumMost of us have had to move ourselves at least once in our lives. We think we have it all planned out, but the true test is when the movers show up (or your friends who were lucky enough to show up and provide free labour). I got to be one of the lucky ones this weekend and I couldn’t help noticing that everything was running exactly like a new team trying to work in an agile development process.

Then again, maybe I’m just starting to see sprints everywhere and need to take  a break from scrum. :)

In any case, this move had it all: impediments, timeboxed delivery, unknown backlog size, and a new group working together to determine their velocity.
Read more of this post

Visual Studio Online and Azure deployment

VSOThis past Tuesday I attended a Webinar led by ALM Ranger and Microsoft MVP Esteban Garcia (@EstebanFGarcia). The topic? Azure and Visual Studio Online (VSO), specifically around deployments (or so I thought). There was more content in this session than I expected to get, that’s for sure!

My primary goal in attending the session was to get a better picture of how deployments worked from VSO code repositories into the Azure cloud, but as a bonus there was also coverage of VSO load testing functionality, as well as Application Insights. Read more of this post

Keystone for Sitecore: Extending template entities

keystone-logoThe Keystone for Sitecore business layer provides generated template entities for each page and component template. These entities provide properties to access each field with a strongly-typed value, as well as properties for template identifiers, field identifiers, and field names. As you extend the Keystone templates and add new fields, you will want to extend these classes for use in your components.

Read more of this post

Sitecore MVC: Editable links wrapping text and images

Sitecore 122In transitioning from Sitecore Web Forms sublayouts to Sitecore MVC renderings, there are some things that have to be done a little differently. In this post, we’ll examine the scenario of wanting to provide authors with the ability to edit text or an image inside of an editable link. Credit goes to @mhwelander who helped me out by providing the solution!

The essential issue at play here is that you no longer have the ability to ‘wrap’ server controls around each other. In Web Forms, you can place one control inside of another, but this is not supported by the Sitecore MVC markup format.

Read more of this post


Get every new post delivered to your Inbox.

Join 41 other followers