Sitecore Personalization – Dynamic functionality
In past Quick Start Guides I covered how to get Sitecore Personalization working and how to create dynamic content. This post will outline how to dynamically swap-out components and how Visitor Tags and .NET roles of users can be used to automatically show functionality and content most suited to them.
Update: I have since released this as a Sitecore Marketplace Module for download. Improvements I have made and the full source code are available in this recent blog post
MIME Type Custom Form Validator
I was recently working on methods to validate files uploaded by End Users and the usual recommendation of checking the file extension didn’t sit right with me, even more so when I found out that the .NET API ultimately just checks the File extension as well.
So the product a mornings work I’ve written a decent method of checking those upload files are what they say they are. In this case I created a Custom Sitecore WFFM Field Validator but its simple enough to port the code to custom web forms. Hopefully another dev will find this suitable as an alternative method.
Sitecore Personalisation – Automatically changing content
In the previous post I covered how to get personalization working correctly for your site. Now its time to start doing something exciting.
With Personalization working the next step is to structure your content so that it is in the form of reusable blocks and develop Sitecore sublayouts to dynamically display these blocks of content.
In this post I’ll go over the basics to achieve this and get you giving personalised experiences like a pro.
Sitecore Personalisation – Getting it working
I’ve been browsing around Sitecore forums and resources and there are often devs posting about Personalization not working working for their site or how to customise their site in a given scenario.
The thing is the former is fairly straight forward with a little guidance and the latter can be achieved with some knowledge and examples. Therefore I thought I’d help the community out by posting a short series of Quick Start Guides on everything from getting Personalization working to dynamically changing content and altering the site based on conditions.
I’ll start with everything that you need to do to get Personalization working in your site.
MasterKey – Unlock Sitecore Items en masse
So pretty exciting news! My first Module has just become available on the Sitecore Marketplace;
It is inspired by the struggles one of the QA guys I work with who had the joy of going through and unlocking folders and folders of items locked by a Content Editor’s account.
Webforms for Marketers Captcha not displaying
I recently developed a custom Web Forms field to allow users to upload photos taken on their mobile device via Web Form for Marketers. The client is pretty high-profile so a part of the requirement that they have some form of protection of repeat uploads from exhibitionists in their community shall we say. Easy, the Captcha field will meet this requirement, however there is an infuriating issue where the captcha image doesn’t display.
Send Email with Attachment Custom Save Action
I was surprised that Web Forms for Marketers does not come with a send email with attachment Save Action by out of the box. Fortunately it can be achieved with custom code based on the existing Send Email Save Action.
Programmactially Editing a Sitecore Item and Expanding Setting Standard Values
With the CRUD functions as entry points for the Modal it is a matter of retrieving fields for the item and then mapping them into our Models.
Continued from Part I outlining how Entity Service can be consumed by SPEAK.
EntityService in Sitecore.Services.Client
We opted for EntityService as opposed to ItemService as it allowed us to serve up custom, lean Models of Items and Fields. Containing only properties required for the Module providing we implement EntityIdenitity in the class definition.
Assert.IsNotNullOrEmpty (teamName, “Team name can’t be null”)
Last weekend the second 24 hour Sitecore Hackathon took place with the best and brightest from the community competed in teams to build the best Sitecore 8 Module. My brother and I decided to enter a team with a nerdy name referencing the Sitecore API. This was my first Hackathon and I had a romantic view of it being like that scene in The Social Network however in reality it came to be something even better.