It is very trivial to retrieve items from Sitecore content repository. Like any other CMS, Sitecore provides APIs for reading and enumerating items and item fields and there is nothing special about it. Without wasting time, let’s talk code straight away. Consider following two lines of code typically found in code behind of a SubLayout: […]
Posts Tagged ‘mvc’
Windows Azure Cache Preview
Caching capabilities have been available in Windows Azure for a while now, at least for use in cloud services. With the latest improvements to Windows Azure caching is now its own service. Now you can use distributed caching with all your Windows Azure applications, whether your application is a Web Sites, VM, Cloud Service or […]
Customizing the model within Sitecore MVC
In Sitecore, the MVC framework provides a “default” model type that does some very necessary work. To support the view, Sitecore’s default model type Sitecore.Mvc.Presentation.RenderingModel provides you access to The “current” item – passed via a datasource or the context item if no datasource is used The PageContext item (which may be different if a […]
Bundling with Sitecore MVC
Sitecore’s MVC support is (as of Sitecore 6.6 update 5) based on the MVC3 implementation by Microsoft. One really nice feature of Microsoft’s MVC4 implementation is the concept of bundling. Bundling allows a developer to aggregate a collection of either CSS files or Javascript files into a single “item” that can be easily manipulated and […]
Easy Email Templates with the Razor View Engine
I was given a task recently to have an application generate and send an email. The requirements were straight forward, the email should contain some customer information along with a list of products. My first thought was to use StringBuilder to handle the task, but something about that bothered me. In 2013, am I still […]
WebGL and Internet Explorer
3D web environments are still in their infancy. In fact the HTML 5 canvas element does not have a 3d context and the most popular way to run 3D graphics in a web browser, WebGL, is not yet considered a web standard. WebGL is still very new. It originated as an HTML Canvas 3D extension […]
Localizing Static Words in ASP.NET MVC Routing
Routing requests to actions within controllers is the backbone of any ASP.NET MVC web application. Being able to define different routes by using static words, such as “Products” or “Search”, enables search engine optimized and user friendly URLs. However, recently I was asked to localize those static words to maintain consistency in the way URLs […]
Sitecore 6.6 Technical Preview MVC Test Lab Bug Fix
Last week I wrote a blog post about a fix for the bug you will get in Sitecore 6.6 rev 120622 when you try utilizing DMS Personalization on an MVC site. If you are interested in using the Sitecore Test Lab, which allows Content Editors to create A/B and Multivariate Tests on their content in the […]